Hi Akhil Das I have tried the nc -lk 9999 command too.
I was hoping the "System.out.println("Print text:" + arg0);" is printed when a stream is processed when lines.flatMap(...) is called. But from my test with "nc -lk 9999", nothing is printed on the console at all. == To test out whether the "nc" tool is working, I have also test the "nc" tool with the Hercules TCP client test tool, it works fine. So now the question goes back to why JavaDStream<String> words =lines.flatMap( new FlatMapFunction<String, String>() { @Override public Iterable<String> call(String arg0) throws Exception { System.out.println("Print text:" + arg0); return Arrays.asList(arg0.split(" ")); } }); is not printing the text I am sending through "nc -lk 9999". === Is there any other way to test if socketTextStream(...) is working? Regards. -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Streaming-Cannot-get-socketTextStream-to-receive-anything-tp9382p9409.html Sent from the Apache Spark User List mailing list archive at Nabble.com.