spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btiernay <btier...@hotmail.com>
Subject JavaRDD method ambiguous after upgrading to Java 8
Date Mon, 02 Mar 2015 22:03:08 GMT
The following method demonstrates the issue:

  private static Tuple2<String, String> group(JavaPairRDD<String, String>
rdd, Function<Tuple2&lt;String, String>, String> f) {
    return rdd.groupBy(f);
  }

I get the following compilation error using Spark 1.1.1 and Java 8u31:

The method groupBy(Function<Tuple2&lt;String,String>,String>) is ambiguous
for the type JavaPairRDD<String,String>

I believe it is ambiguous because both JavaPairRDD and JavaRDDLike offer the
same method.

Has anyone encountered this before? Is there a solution?

Thanks!



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/JavaRDD-method-ambiguous-after-upgrading-to-Java-8-tp21882.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

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


Mime
View raw message