Hi Sarala, I found the reason, it's because when spark run it still needs Hadoop support, I think it's a bug in Spark and still not fixed now ;)
After I download winutils.exe and following the steps from bellow workaround, it works fine: http://qnalist.com/questions/4994960/run-spark-unit-test-on-windows-7 -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Java-lang-NullPointerException-tp25562p25687.html Sent from the Apache Spark User List mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org