Skip to content

streamroot/demo-influxer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

influxer

A demo of exactly-once processing with Flink and InfluxDB. More details in this blog post.

Usage

Startup the environment:

docker-compose up

Startup a netcat server in another terminal:

docker-compose exec netcat nc -l 9000

Build and run the Flink job:

mvn clean package -DskipTests

docker-compose exec jobmanager \
bash -c "flink run -d /influxer/target/influxer-standalone.jar 9000"

You can check the job status in the Flink UI.

Once it's running, type some numbers from the netcat server terminal:

22
24
23

Finally, check the resulting 10-second windowed sums in InfluxDB:

docker-compose exec influxdb \
influx -database data -execute 'select * from records'

Stop the environment:

docker-compose down

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages