spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bit1129@163.com" <bit1...@163.com>
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...



bit1129@163.com
 
From: bit1129@163.com
Date: 2015-01-03 19:03
To: user
Subject: sqlContext is undefined in the Spark Shell
Hi,

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.

Thanks.




bit1129@163.com
Mime
View raw message