Re: error: type mismatch while Union

2014-09-07 Thread Dhimant
Thank you Aaron for pointing out problem. This only happens when I run this code in spark-shell but not when i submit the job. -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/error-type-mismatch-while-Union-tp13547p13677.html Sent from the Apache Spark User

Re: error: type mismatch while Union

2014-09-06 Thread Aaron Davidson
n context: > http://apache-spark-user-list.1001560.n3.nabble.com/error-type-mismatch-while-Union-tp13547p13618.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail

Re: error: type mismatch while Union

2014-09-06 Thread Dhimant
I am using Spark version 1.0.2 -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/error-type-mismatch-while-Union-tp13547p13618.html Sent from the Apache Spark User List mailing list archive at Nabble.com

Re: error: type mismatch while Union

2014-09-05 Thread Yana Kadiyska
> val numberRdd = firstRdd .union(secondRDD ) > :24: error: type mismatch; > found : org.apache.spark.rdd.RDD[MyNumber] > required: org.apache.spark.rdd.RDD[MyNumber] >val numberRdd = onenumberRdd.union(anotherRDD)/ > > > > -- > View this message in context: >

error: type mismatch while Union

2014-09-05 Thread Dhimant
smatch; found : org.apache.spark.rdd.RDD[MyNumber] required: org.apache.spark.rdd.RDD[MyNumber] val numberRdd = onenumberRdd.union(anotherRDD)/ -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/error-type-mismatch-while-Union-tp13547.html Sent