Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 647 Bytes

File metadata and controls

48 lines (36 loc) · 647 Bytes

BasicSparkStreaming

Author: Henrique Kops

Basic spark streaming word count application using TCP data ingestion.

Learn more about spark streaming

Build

Build project using sbt:

$ sbt package

Usage

For local testing use two terminals

Source terminal

NetCat to listen port 9999:

$ nc -lk 9999
hey hey hey dude
...
^C
$

Stream processing terminal

Start processing:

$ ./run
...
^C
$

Output:

-------------------------------------
Time: 1601390430000 ms
-------------------------------------
(hey,3)
(dude,1)