Skip to content

Qiming-C/Flink-WordCount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flink-WordCount

This program consist of two types of data processing demo

WordCount.java uses batch processing to process word count

StreamWordCount.java uses stream processing to process word count as unbounded stream

Using netCat simulates real-time data stream

before running the program make sure you have netcat installed then run
nc -lk <port>

once netcat upon running, config the application CLI arguments if you are using IDEA, config command line arguments to --host localhost --port portnumber then run the application

Finally, you can type any word at terminal then see the processing result in the console of application

Set datasource from Kafka

make sure zookeeper and kafka server is up running

Run
./kafka-console-producer.sh --broker-list localhost:9092 --topic sensor

then run the application, then we can use producer console to produce data where flink is processing the data from kafka

Other Directory

Other than the wordCount program, there are many example of streamApi code in the corresponding folder

Releases

No releases published

Packages

No packages published

Languages