[ https://issues.apache.org/jira/browse/SPARK-22371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16292134#comment-16292134 ]
Mayank Agarwal edited comment on SPARK-22371 at 12/15/17 9:01 AM: ------------------------------------------------------------------ Hi, Sorry for late reply. >From our analysis this error seems to come when there are jobs running >parallel on datasets and union of all those datasets and Full GC triggered at >same time which clears the accumulate of children dataset of union. I am attaching a small program from which this error comes frequently. [^ShuffleIssue.java] [^Helper.scala] [^sampledata] Steps for generating sample data {code:title=UNIX COMMAND |borderStyle=solid} for((i=1472428800;i<=1472947200;i=i+86400));do mkdir -p output/testdata/eventtime=$i;cp sampledata output/testdata/eventtime=$i/000001_0;cp sampledata output/testdata/eventtime=$i/000001_1;cp sampledata output/testdata/eventtime=$i/000001_2;cp sampledata output/testdata/eventtime=$i/000001_3;done {code} was (Author: mayank.agarwal2305): Hi, Sorry for late reply. >From our analysis this error seems to come when there are jobs running >parallel on datasets and union of all those datasets and Full GC triggered at >same time which clears the accumulate of children dataset of union. I am attaching a small program from which this error comes frequently. [^ShuffleIssue.java] [^Helper.scala] [^sampledata] Steps for generating sample data {code:title=Bar.java|borderStyle=solid} for((i=1472428800;i<=1472947200;i=i+86400));do mkdir -p output/testdata/eventtime=$i;cp sampledata output/testdata/eventtime=$i/000001_0;cp sampledata output/testdata/eventtime=$i/000001_1;cp sampledata output/testdata/eventtime=$i/000001_2;cp sampledata output/testdata/eventtime=$i/000001_3;done {code} > dag-scheduler-event-loop thread stopped with error Attempted to access > garbage collected accumulator 5605982 > ------------------------------------------------------------------------------------------------------------- > > Key: SPARK-22371 > URL: https://issues.apache.org/jira/browse/SPARK-22371 > Project: Spark > Issue Type: Bug > Components: Spark Core > Affects Versions: 2.1.0 > Reporter: Mayank Agarwal > Attachments: Helper.scala, ShuffleIssue.java, > driver-thread-dump-spark2.1.txt, sampledata > > > Our Spark Jobs are getting stuck on DagScheduler.runJob as dagscheduler > thread is stopped because of *Attempted to access garbage collected > accumulator 5605982*. > from our investigation it look like accumulator is cleaned by GC first and > same accumulator is used for merging the results from executor on task > completion event. > As the error java.lang.IllegalAccessError is LinkageError which is treated as > FatalError so dag-scheduler loop is finished with below exception. > ---ERROR stack trace -- > Exception in thread "dag-scheduler-event-loop" java.lang.IllegalAccessError: > Attempted to access garbage collected accumulator 5605982 > at > org.apache.spark.util.AccumulatorContext$$anonfun$get$1.apply(AccumulatorV2.scala:253) > at > org.apache.spark.util.AccumulatorContext$$anonfun$get$1.apply(AccumulatorV2.scala:249) > at scala.Option.map(Option.scala:146) > at > org.apache.spark.util.AccumulatorContext$.get(AccumulatorV2.scala:249) > at > org.apache.spark.scheduler.DAGScheduler$$anonfun$updateAccumulators$1.apply(DAGScheduler.scala:1083) > at > org.apache.spark.scheduler.DAGScheduler$$anonfun$updateAccumulators$1.apply(DAGScheduler.scala:1080) > at > scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59) > at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48) > at > org.apache.spark.scheduler.DAGScheduler.updateAccumulators(DAGScheduler.scala:1080) > at > org.apache.spark.scheduler.DAGScheduler.handleTaskCompletion(DAGScheduler.scala:1183) > at > org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.doOnReceive(DAGScheduler.scala:1647) > at > org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1605) > at > org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1594) > at org.apache.spark.util.EventLoop$$anon$1.run(EventLoop.scala:48) > I am attaching the thread dump of driver as well -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org