Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-16580

[WARN] class Accumulator in package spark is deprecated: use AccumulatorV2

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 2.0.0
    • None
    • Spark Core
    • None

    Description

      When I was working on the R wrapper, I found the compile warn.

      > 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]
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              iamshrek Xin Ren
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: