I am trying to run SparkSQL :
val sqlContext = new org.apache.spark.sql.hive.HiveContext(sc)
But the error i m getting is below:
I was facing the same issue while creating table.
sqlContext.sql("CREATE TABLE....
I could see many entries for ps -ef | grep spark-shell so I killed all of them and restarted spark-shell. It worked for me.
ps -ef | grep spark-shell
spark-shell