An open API service indexing awesome lists of open source software.

https://github.com/lerouxrgd/squirrel

Flink window word count example in Clojure
https://github.com/lerouxrgd/squirrel

clojure flink stream-processing wordcount

Last synced: 6 months ago
JSON representation

Flink window word count example in Clojure

Awesome Lists containing this project

README

          

# squirrel

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

Run local tests:

```
lein test
```

Build the Flink job:

```
lein uberjar
```

Start a local Flink cluster and a local netcat server:

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

Run the Flink job:

```
$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:

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