This project has retired. For details please refer to its Attic page.
streams-example-flink-twitter-collection – FlinkTwitterPostsPipeline Fork me on GitHub

FlinkTwitterPostsPipeline

Description:

Collects twitter posts with flink.

Configuration:

TwitterPostsPipelineConfiguration.json

include "flink.conf"
include "twitter.oauth.conf"
source {
  fields = ["ID"]
  scheme = file
  path = "target/test-classes"
  readerPath = "asf.txt"
}
destination {
  fields = ["DOC"]
  scheme = file
  path = "target/test-classes"
  writerPath = "FlinkTwitterPostsPipelineIT"
}

Run (Local):

java -cp dist/flink-twitter-collection-jar-with-dependencies.jar -Dconfig.file=file://<location_of_config_file> org.apache.streams.examples.flink.twitter.collection.FlinkTwitterPostsPipeline

Run (Flink):

flink-run.sh dist/flink-twitter-collection-jar-with-dependencies.jar org.apache.streams.examples.flink.twitter.collection.FlinkTwitterPostsPipeline http://<location_of_config_file> 

Run (YARN):

flink-run.sh yarn dist/flink-twitter-collection-jar-with-dependencies.jar org.apache.streams.examples.flink.twitter.collection.FlinkTwitterPostsPipeline http://<location_of_config_file> 

Diagram:

FlinkTwitterPostsPipeline.dot.svg

JavaDocs

Licensed under Apache License 2.0 - http://www.apache.org/licenses/LICENSE-2.0