spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btiernay <>
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?


View this message in context:
Sent from the Apache Spark User List mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message