项目作者: lerouxrgd

项目描述 :
Flink window word count example in Clojure
高级语言: Clojure
项目地址: git://github.com/lerouxrgd/squirrel.git
创建时间: 2019-01-19T00:50:51Z
项目社区:https://github.com/lerouxrgd/squirrel

开源协议:Eclipse Public License 2.0

下载


squirrel

Flink window word count example in Clojure, reading text data from a local socket
and printing counts every 10 seconds.

Run local tests:

  1. lein test

Build the Flink job:

  1. lein uberjar

Start a local Flink cluster and a local netcat server:

  1. $FLINK_HOME/bin/start-cluster.sh
  2. nc -l -p 9000

Run the Flink job:

  1. $FLINK_HOME/bin/flink run target/squirrel-0.1.0-standalone.jar 9000

Type some text in the netcat socket, check the results in Flink’s logs:

  1. tail -f $FLINK_HOME/log/flink-*-taskexecutor-*.out