socket
Module
The Python socket
module enables us to send and receive data by TCP protocol.
For the 2 end points of our transmission, import the socket
module, instantiate a socket, then put them separately in server and client mode.
Server
The server end wait for the client requests, and serve them. In visor, the server should be able to provide generated log lines.
Client
Here in visor, the spark streaming application will be the client.