spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bit1129@163.com" <bit1...@163.com>
Subject sqlContext is undefined in the Spark Shell
Date Sat, 03 Jan 2015 11:03:38 GMT
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