subscribe

2016-01-03 Thread Rajdeep Dua

Re: InferredSchema Example in Spark-SQL

2015-05-18 Thread Rajdeep Dua
Thanks will try this. On Sun, May 17, 2015 at 8:07 PM, Ram Sriharsha wrote: > you are missing sqlContext.implicits._ > > On Sun, May 17, 2015 at 8:05 PM, Rajdeep Dua > wrote: > >> Here are my imports >> >> *import* org.apache.spark.SparkContext >> &g

Re: InferredSchema Example in Spark-SQL

2015-05-17 Thread Rajdeep Dua
Here are my imports *import* org.apache.spark.SparkContext *import* org.apache.spark.SparkContext._ *import* org.apache.spark.SparkConf *import* org.apache.spark.sql.SQLContext *import* org.apache.spark.sql.SchemaRDD On Sun, May 17, 2015 at 8:05 PM, Rajdeep Dua wrote: > Sorry .. t

Re: InferredSchema Example in Spark-SQL

2015-05-17 Thread Rajdeep Dua
urces/people.txt").map(_.split(",")).map(p => Person(p(0), p(1).trim.toInt)).toDF() On Sun, May 17, 2015 at 5:41 PM, Cheng, Hao wrote: > Typo? Should be .toDF(), not .toRD() > > > > *From:* Ram Sriharsha [mailto:sriharsha@gmail.com] > *Sent:* Monday, May 1

InferredSchema Example in Spark-SQL

2015-05-17 Thread Rajdeep Dua
Hi All, Was trying the Inferred Schema spart example http://spark.apache.org/docs/latest/sql-programming-guide.html#overview I am getting the following compilation error on the function toRD() value toRD is not a member of org.apache.spark.rdd.RDD[Person] [error] val people = sc.textFile("/ho