spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject Re: sqlContext is undefined in the Spark Shell
Date Sat, 03 Jan 2015 11:18:23 GMT
This is a noise,please ignore

I figured out what happens...
Date: 2015-01-03 19:03
To: user
Subject: sqlContext is undefined in the Spark Shell

In the spark shell, I do the following two things:

1. scala> val cxt = new org.apache.spark.sql.SQLContext(sc);
2. scala> import sqlContext._

The 1st one succeeds while the 2nd one fails with the following error,

<console>:10: error: not found: value sqlContext 
import sqlContext._

Is there something missing? I am using Spark 1.2.0.

View raw message