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
- Host: GitHub
- URL: https://github.com/lerouxrgd/squirrel
- Owner: lerouxrgd
- License: epl-2.0
- Created: 2019-01-19T00:50:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-06T02:03:22.000Z (over 6 years ago)
- Last Synced: 2025-03-01T16:14:49.147Z (11 months ago)
- Topics: clojure, flink, stream-processing, wordcount
- Language: Clojure
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```