skonmeme / wordcount

Word count on Flink

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WordCount on Flink

Create kafka 3 topics
kafka-topics.sh --zookeeper localhost:2181 --create --topic wordcount-text --partitions 1 --replication-factor 1
kafka-topics.sh --zookeeper localhost:2181 --create --topic wordcount-words --partitions 1 --replication-factor 1
kafka-topics.sh --zookeeper localhost:2181 --create --topic wordcount-another --partitions 1 --replication-factor 1
Start Flink job
flink run -c com.skt.skon.wordcount.WordCount build/libs/wordcount-1.0-SNAPSHOT.jar 

Check you taskmanager.

About

Word count on Flink


Languages

Language:Scala 100.0%