As noted in the previous section, we will use two terminal windows:
- One terminal window to transmit an event
- Another terminal to receive those events
The source code for this can be found in the Apache Spark 1.6 Streaming Programming Guide at: https://spark.apache.org/docs/1.6.0/streaming-programming-guide.html.