Custom Receiver that receives data over a socket. Received bytes are interpreted as
text and \n delimited lines are considered as records. They are then counted and printed.
To run this on your local machine, you need to first run a Netcat server
$ nc -lk 9999
and then run the example
$ bin/run-example org.apache.spark.examples.streaming.CustomReceiver localhost 9999
Custom Receiver that receives data over a socket. Received bytes are interpreted as text and \n delimited lines are considered as records. They are then counted and printed.
To run this on your local machine, you need to first run a Netcat server
$ nc -lk 9999
and then run the example$ bin/run-example org.apache.spark.examples.streaming.CustomReceiver localhost 9999