Terminal 1 – Netcat window

For the first window, we will use Netcat (or nc) to manually send events such as blue, green, and gohawks. To start Netcat, use this command; we will direct our events to port 9999, where our Spark Streaming job will detect:

nc -lk 9999

To match the previous diagram, we will type in our events so that the console screen looks like this:

$nc -lk 9999
blue blue blue blue blue green green green
gohawks
green green
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset