在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):OrphicAbyss/MastodonFlink开源软件地址(OpenSource Url):https://github.com/OrphicAbyss/MastodonFlink开源编程语言(OpenSource Language):Java 79.9%开源软件介绍(OpenSource Introduction):Mastodon + FlinkTest project for using the Mastodon streaming API as a source in Apache Flink. Building Fat JARYou need to have Maven installed or to use an IDE like IntelliJ IDEA Run the maven package lifecycle with the build-jar profile enabled. mvn package -P build-local-jar This will build a 'Fat JAR' containing all the dependencies which can then be used to test the pipeline. If you have a Apache Flink cluster to deploy to you can use:
To create a JAR with only the dependencies required (no Flink dependencies). TestingYou need:
java -jar net.gluonporridge.LiveStream --instance "Name Of Instance" --accessToken "API Access Token Here" This will start up a local Flink instance and run the pipeline. It will connect to Mastodon and start streaming in real time. By default the pipeline is set to use the Federated Timeline. New Toots will be shown as they are streamed in. The output will look like:
Output To MongoDBGoing to store full records in MongoDB for use in a test interface. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论