spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From riginos <samarasrigi...@gmail.com>
Subject Spark SQL Programming Guide - registerTempTable Error
Date Sun, 23 Nov 2014 18:59:18 GMT
Hi guys ,
Im trying to do the Spark SQL Programming Guide but after the:

case class Person(name: String, age: Int)
// Create an RDD of Person objects and register it as a table.
val people =
sc.textFile("examples/src/main/resources/people.txt").map(_.split(",")).map(p
=> Person(p(0), p(1).trim.toInt)) 

im issuing:
people.registerTempTable("people")
 <console>:20: error: value registerTempTable is not a member of
org.apache.spark.rdd.RDD[Person]
              people.registerTempTable("people")

why is that what I'm i doing wrong?



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-SQL-Programming-Guide-registerTempTable-Error-tp19591.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org


Mime
View raw message