You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Colin B. (JIRA)" <ji...@apache.org> on 2014/08/29 07:38:54 UTC

[jira] [Comment Edited] (SPARK-3266) JavaDoubleRDD doesn't contain max()

    [ https://issues.apache.org/jira/browse/SPARK-3266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14114881#comment-14114881 ] 

Colin B. edited comment on SPARK-3266 at 8/29/14 5:38 AM:
----------------------------------------------------------

Broken for JavaDoubleRDD: fold, reduce, min, max
{code}
java.lang.NoSuchMethodError: org.apache.spark.api.java.JavaDoubleRDD.fold(Ljava/lang/Double;Lorg/apache/spark/api/java/function/Function2;)Ljava/lang/Double;
java.lang.NoSuchMethodError: org.apache.spark.api.java.JavaDoubleRDD.reduce(Lorg/apache/spark/api/java/function/Function2;)Ljava/lang/Double;
java.lang.NoSuchMethodError: org.apache.spark.api.java.JavaDoubleRDD.min(Ljava/util/Comparator;)Ljava/lang/Double;
java.lang.NoSuchMethodError: org.apache.spark.api.java.JavaDoubleRDD.max(Ljava/util/Comparator;)Ljava/lang/Double;
{code}

The "first" method would also be affected, but it seems that [~joshrosen] fixed that when he first implemented JavaDoubleRDD.

Also, I would bet JavaPairRDD and JavaSchemaRDD have similar issues.


was (Author: lanzaa):
Broken for JavaDoubleRDD: fold, reduce, min, max
{code}
java.lang.NoSuchMethodError: org.apache.spark.api.java.JavaDoubleRDD.fold(Ljava/lang/Double;Lorg/apache/spark/api/java/function/Function2;)Ljava/lang/Double;
java.lang.NoSuchMethodError: org.apache.spark.api.java.JavaDoubleRDD.reduce(Lorg/apache/spark/api/java/function/Function2;)Ljava/lang/Double;
java.lang.NoSuchMethodError: org.apache.spark.api.java.JavaDoubleRDD.min(Ljava/util/Comparator;)Ljava/lang/Double;
java.lang.NoSuchMethodError: org.apache.spark.api.java.JavaDoubleRDD.max(Ljava/util/Comparator;)Ljava/lang/Double;
{code}

The "first" method would also be affected, but it seems that [~joshrosen] fixed that when he first implemented JavaDoubleRDD.

Also, I would bet JavaPairRDD.scala and JavaSchemaRDD.scala have similar issues.

> JavaDoubleRDD doesn't contain max()
> -----------------------------------
>
>                 Key: SPARK-3266
>                 URL: https://issues.apache.org/jira/browse/SPARK-3266
>             Project: Spark
>          Issue Type: Bug
>          Components: Java API
>    Affects Versions: 1.0.1, 1.0.2, 1.1.0
>            Reporter: Amey Chaugule
>            Assignee: Josh Rosen
>         Attachments: spark-repro-3266.tar.gz
>
>
> While I can compile my code, I see:
> Caused by: java.lang.NoSuchMethodError: org.apache.spark.api.java.JavaDoubleRDD.max(Ljava/util/Comparator;)Ljava/lang/Double;
> When I try to execute my Spark code. Stepping into the JavaDoubleRDD class, I don't notice max()
> although it is clearly listed in the documentation.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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