报错情况:
解决方法:
SQLContext可能需要自己创建。
所以,先运行var sqlContext=new org.apache.spark.sql SQLContext(sc)。即可。
之后再倒入: