Agile Data Science: PySpark Streaming
The pyspark command instantiates a SparkContext by default with the name "sc", and instantiating a new one as shown here results in an error message. To get this code to work properly, you will need to first call the stop() methiod on the existing SparkContext like so.
This has been corrected the code in the GitHub repository.
Share this highlighthttp://www.safaribooksonline.com/a/agile-data-science/20893146/