spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject spark git commit: [SPARK-9613] [HOTFIX] Fix usage of JavaConverters removed in Scala 2.11
Date Thu, 27 Aug 2015 10:07:45 GMT
Repository: spark
Updated Branches:
  refs/heads/master 1a446f75b -> b02e81872


[SPARK-9613] [HOTFIX] Fix usage of JavaConverters removed in Scala 2.11

Fix for [JavaConverters.asJavaListConverter](http://www.scala-lang.org/api/2.10.5/index.html#scala.collection.JavaConverters$)
being removed in 2.11.7 and hence the build fails with the 2.11 profile enabled. Tested with
the default 2.10 and 2.11 profiles. BUILD SUCCESS in both cases.

Build for 2.10:

    ./build/mvn -Pyarn -Phadoop-2.6 -Dhadoop.version=2.7.1 -DskipTests clean install

and 2.11:

    ./dev/change-scala-version.sh 2.11
    ./build/mvn -Pyarn -Phadoop-2.6 -Dhadoop.version=2.7.1 -Dscala-2.11 -DskipTests clean
install

Author: Jacek Laskowski <jacek@japila.pl>

Closes #8479 from jaceklaskowski/SPARK-9613-hotfix.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/b02e8187
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/b02e8187
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/b02e8187

Branch: refs/heads/master
Commit: b02e8187225d1765f67ce38864dfaca487be8a44
Parents: 1a446f7
Author: Jacek Laskowski <jacek@japila.pl>
Authored: Thu Aug 27 11:07:37 2015 +0100
Committer: Sean Owen <sowen@cloudera.com>
Committed: Thu Aug 27 11:07:37 2015 +0100

----------------------------------------------------------------------
 .../org/apache/spark/ml/classification/JavaOneVsRestSuite.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/b02e8187/mllib/src/test/java/org/apache/spark/ml/classification/JavaOneVsRestSuite.java
----------------------------------------------------------------------
diff --git a/mllib/src/test/java/org/apache/spark/ml/classification/JavaOneVsRestSuite.java
b/mllib/src/test/java/org/apache/spark/ml/classification/JavaOneVsRestSuite.java
index 2744e02..253cabf 100644
--- a/mllib/src/test/java/org/apache/spark/ml/classification/JavaOneVsRestSuite.java
+++ b/mllib/src/test/java/org/apache/spark/ml/classification/JavaOneVsRestSuite.java
@@ -55,7 +55,7 @@ public class JavaOneVsRestSuite implements Serializable {
 
         double[] xMean = {5.843, 3.057, 3.758, 1.199};
         double[] xVariance = {0.6856, 0.1899, 3.116, 0.581};
-        List<LabeledPoint> points = JavaConverters.asJavaListConverter(
+        List<LabeledPoint> points = JavaConverters.seqAsJavaListConverter(
             generateMultinomialLogisticInput(weights, xMean, xVariance, true, nPoints, 42)
         ).asJava();
         datasetRDD = jsc.parallelize(points, 2);


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


Mime
View raw message