sqlContext is not avaiable in Spark 2.
Please help me.
In Spark 2.0.x, the starting point of Spark is SparkSession and that is available in Spark shell as spark, you can try below way:
You can also create your Spark Context like this
val sqlContext = new org.apache.spark.sql.SQLContext(sc)
Thanks,I can create the sqlContext by your mentioned way.
So in Spark 2 by default sqlContext is not available.We have to create explicitly always.
Correct me if I am wrong.
Yes from spark 2.0.X versions sqlContext is not directly available