You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Bahubali Jain <ba...@gmail.com> on 2014/11/08 12:15:23 UTC

Issue with Custom Key Class

Hi,
I have a custom key class.In this class equals() and hashcode() have been
overridden.
I have a javaPairRDD which has this class as the key .When  groupbykey() or
reducebykey() is called  a null object is being passed to the function
*equals*(Object obj) as a result the grouping is failing.
Is this a known issue?
I am using Spark 0.9 version.

Thanks,
Baahu


-- 
Twitter:http://twitter.com/Baahu

Re: Issue with Custom Key Class

Posted by Sean Owen <so...@cloudera.com>.
Does your RDD contain a null key?

On Sat, Nov 8, 2014 at 11:15 AM, Bahubali Jain <ba...@gmail.com> wrote:
> Hi,
> I have a custom key class.In this class equals() and hashcode() have been
> overridden.
> I have a javaPairRDD which has this class as the key .When  groupbykey() or
> reducebykey() is called  a null object is being passed to the function
> equals(Object obj) as a result the grouping is failing.
> Is this a known issue?
> I am using Spark 0.9 version.
>
> Thanks,
> Baahu
>
>
> --
> Twitter:http://twitter.com/Baahu
>

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