Spark streaming issue


Hi Team,

I am getting below error while trying to connect gw01 for spark streaming excercise.

–>nc -lk 19999
Ncat: bind to Cannot assign requested address. QUITTING.

Below is the file i am trying to execute:

from pyspark import SparkConf,SparkContext
from pyspark.streaming import StreamingContext

conf = SparkConf().setAppName(“Streaming wod count”).setMaster(“yarn-client”)

sc = SparkContext(conf=conf)
ssc= StreamingContext(sc,15)

lines= ssc.socketTextStream(“”,19999)
words= lines.flatMap(lambda line : line.split(" "))
wordTuples= word: (word,1))
wordCount=wordTuples.reduceByKey(lambda x,y : x+y)


Plese help.