Add this in your code and let me know its works for you or not?
Thanks for your quick response !!
I am getting below error now while importing sqlContxt.implicits._ .
import sqlContext.implicits._ --> not found: object sqlContext
So tried to import with full package name but getting error :
object SQLContext is not a member of package org.apache.spark.sql Note: class SQLContext exists, but it has no companion object.
Can I have to include some dependency in pom.xml for this package import to fix this issue ?
pom.xml is attached as attachment.
Issue is fixed by including these dependency in pom.xml.