How to get rid of below error
spark-shell --queue= *;
To adjust logging level use sc.setLogLevel(newLevel).
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/___/ .__/\_,_/_/ /_/\_\ version 1.6.0
Spark context available as sc
SQL context available as sqlContext.
scala> val sqlcontext = new org.apache.spark.sql.SQLContext(sc)
sqlcontext: org.apache.spark.sql.SQLContext = org.apache.spark.sql.SQLContext@4f9a8d71
scala> var selectExpr : List[Column] = List("Type","Item","Price")
<console>:25: error: not found: type Column
var selectExpr : List[Column] = List("Type","Item","Price")
^
You need to just import
org.apache.spark.sql.Column
scala> import org.apache.spark.sql.Column
import org.apache.spark.sql.Column
scala> var selectExpr : List[Column] = List(col("Type"),col("Item"),col("Price"))
selectExpr: List[org.apache.spark.sql.Column] = List(Type, Item, Price)
This design is incredible! You definitely know how to keep a reader amused. I was almost moved to start my own blog
ReplyDelete메이저사이트
경마
Fantastic job. I really enjoyed
ReplyDeletewhat you had to say, and more than that, how you presented it.
Too cool!
카지노사이트
토토사이트
I really enjoy your web’s topic. Very creative and friendly for users. Definitely bookmark this and follow it everyday.
ReplyDelete슬롯머신사이트
These are in fact impressive ideas in on the topic of blogging.
ReplyDeleteYou have touched some nice things here. 토토