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

Why I ran into issue " accumulator, copyandreset must be zero error"

    XMLWordPrintableJSON

Details

    • Question
    • Status: Resolved
    • Blocker
    • Resolution: Invalid
    • 2.0.1
    • None
    • Java API
    • None
    • linux.

    Description

      I used to run spark code under spark 1.5. No problem at all. right now, I ran code on spark 2.0. see error

      "Exception in thread "main" java.lang.AssertionError: assertion failed: copyAndReset must return a zero value copy
      at scala.Predef$.assert(Predef.scala:170)
      at org.apache.spark.util.AccumulatorV2.writeReplace(AccumulatorV2.scala:157)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      Please help or give suggestion on how to fix the issue?

      Really appreciate it,

      Dianwei

      Attachments

        Activity

          People

            Unassigned Unassigned
            dianweih dianwei Han
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified