Re: JavaRDD to DataFrame fails with null pointer exception in 1.6.0

2016-08-18 Thread Aditya
Check if schema is generated correctly. On Wednesday 17 August 2016 10:15 AM, sudhir patil wrote: Tested with java 7 & 8 , same issue on both versions. On Aug 17, 2016 12:29 PM, "spats" > wrote: Cannot convert JavaRDD to

Re: JavaRDD to DataFrame fails with null pointer exception in 1.6.0

2016-08-16 Thread sudhir patil
Tested with java 7 & 8 , same issue on both versions. On Aug 17, 2016 12:29 PM, "spats" wrote: > Cannot convert JavaRDD to DataFrame in spark 1.6.0, throws null pointer > exception & no more details. Can't really figure out what really happening. > Any pointer to fixes?

JavaRDD to DataFrame fails with null pointer exception in 1.6.0

2016-08-16 Thread spats
Cannot convert JavaRDD to DataFrame in spark 1.6.0, throws null pointer exception & no more details. Can't really figure out what really happening. Any pointer to fixes? //convert JavaRDD to DataFrame DataFrame schemaPeople = sqlContext.createDataFrame(people, Person.class); // exception with no