3/21/2017

Fast Stream Analytics with Kafka & Flink



Steps:

1.Setup Kafka Connect & Kafka


2. Download Flink & Install


3. Go to flink folder : cd flink-1.2.0/

4. Start flink in standalone mode
./bin/start-local.sh

5. Start Kafka Read Job

./bin/flink run ~/flink/flink-examples/flink-examples-streaming/target/Kafka.jar --topic metric_topic --bootstrap.servers localhost:9092

6. Watch logs
tail -f log/flink-*-jobmanager-*.out

7. Send JSON to Kafka Connect TCP port.

cat analytics.json | netcat localhost 12345



Source Code: 

No comments:

Post a Comment