Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

not able to import import spark.implicits._

Solved Go to solution
Highlighted

not able to import import spark.implicits._

I am using spark shell , my os is centos6 when i am trying to import spark.implicits._ , i get below error:

<console>:30: error: not found: value spark
         import spark.implicits._
                ^
1 ACCEPTED SOLUTION

Accepted Solutions

Re: not able to import import spark.implicits._

I am able to import import spark.implicits._ , earlier i was using spark1 but launching spark2 solved the problem.

2 REPLIES 2

Re: not able to import import spark.implicits._

also I get below error too :

scala> val spark = SparkSession.builder().enableHiveSupport().getOrCreate()
<console>:30: error: not found: value SparkSession
         val spark = SparkSession.builder().enableHiveSupport().getOrCreate(

Re: not able to import import spark.implicits._

I am able to import import spark.implicits._ , earlier i was using spark1 but launching spark2 solved the problem.

Don't have an account?
Coming from Hortonworks? Activate your account here