[ https://issues.apache.org/jira/browse/SPARK-16580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15380169#comment-15380169 ]
Xin Ren commented on SPARK-16580: --------------------------------- You are right this one is hard, it's kindof all over the place. I'd like to have a try, but I'm not sure I can resolve it... I tried the modify here: https://github.com/keypointt/spark/commit/84db7265250eef147c8d51e539ace9f9dfc35a19 And I compiled again and warnings on "PythonRDD.scala:78" and "PythonRDD.scala:71" disappeared. But for "PythonRDD.scala:873: trait AccumulatorParam" and "AccumulatorV2.scala:459: trait AccumulableParam", I don't know what to do with them, since they are supporting some legacy api call > [WARN] class Accumulator in package spark is deprecated: use AccumulatorV2 > -------------------------------------------------------------------------- > > Key: SPARK-16580 > URL: https://issues.apache.org/jira/browse/SPARK-16580 > Project: Spark > Issue Type: Improvement > Components: Spark Core > Affects Versions: 2.0.0 > Reporter: Xin Ren > Priority: Minor > > When I was working on the R wrapper, I found the compile warn. > {code} > > project mllib > > console > [warn] > /Users/renxin/workspace/spark/core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala:78: > class Accumulator in package spark is deprecated: use AccumulatorV2 > [warn] accumulator: Accumulator[JList[Array[Byte]]]) > [warn] > [warn] > /Users/renxin/workspace/spark/core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala:78: > class Accumulator in package spark is deprecated: use AccumulatorV2 > [warn] accumulator: Accumulator[JList[Array[Byte]]]) > [warn] > [warn] > /Users/renxin/workspace/spark/core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala:78: > class Accumulator in package spark is deprecated: use AccumulatorV2 > [warn] accumulator: Accumulator[JList[Array[Byte]]]) > [warn] > [warn] > /Users/renxin/workspace/spark/core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala:71: > class Accumulator in package spark is deprecated: use AccumulatorV2 > [warn] private[spark] case class PythonFunction( > [warn] > [warn] > /Users/renxin/workspace/spark/core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala:78: > class Accumulator in package spark is deprecated: use AccumulatorV2 > [warn] accumulator: Accumulator[JList[Array[Byte]]]) > [warn] > [warn] > /Users/renxin/workspace/spark/core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala:873: > trait AccumulatorParam in package spark is deprecated: use AccumulatorV2 > [warn] extends AccumulatorParam[JList[Array[Byte]]] { > [warn] > [warn] > /Users/renxin/workspace/spark/core/src/main/scala/org/apache/spark/util/AccumulatorV2.scala:459: > trait AccumulableParam in package spark is deprecated: use AccumulatorV2 > [warn] param: org.apache.spark.AccumulableParam[R, T]) extends > AccumulatorV2[T, R] { > [warn] > [warn] > /Users/renxin/workspace/spark/core/src/main/scala/org/apache/spark/util/AccumulatorV2.scala:459: > trait AccumulableParam in package spark is deprecated: use AccumulatorV2 > [warn] param: org.apache.spark.AccumulableParam[R, T]) extends > AccumulatorV2[T, R] { > [warn] > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org