org.apache.spark.SparkException: Job cancelled because SparkContext was shut down

nabble.com | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Apache Spark Developers List - Spark fails after 6000s because of akka

    nabble.com | 8 months ago
    org.apache.spark.SparkException: Job cancelled because SparkContext was shut down
  2. 0

    Re: Spark fails after 6000s because of akka

    spark-dev | 1 year ago | Alexander Pivovarov
    org.apache.spark.SparkException: Job cancelled because SparkContext was shut down
  3. 0

    Re: Spark fails after 6000s because of akka

    spark-dev | 1 year ago | Alexander Pivovarov
    org.apache.spark.SparkException: Job cancelled because SparkContext was shut down
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    "sparkContext was shut down" while running spark on a large dataset

    Stack Overflow | 2 years ago | Aleksander Zendel
    org.apache.spark.SparkException: Job cancelled because SparkContext was shut down
  6. 0

    Can't run sparkbench in HDP 2.3

    GitHub | 1 year ago | goldjay1231
    org.apache.spark.SparkException: Job cancelled because SparkContext was shut down

  1. tyson925 2 times, last 4 weeks ago
  2. johnxfly 1 times, last 4 weeks ago
  3. Nikolay Rybak 2 times, last 3 months ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.spark.SparkException

    Job cancelled because SparkContext was shut down

    at org.apache.spark.scheduler.DAGScheduler$$anonfun$cleanUpAfterSchedulerStop$1.apply()
  2. Spark
    DAGScheduler$$anonfun$cleanUpAfterSchedulerStop$1.apply
    1. org.apache.spark.scheduler.DAGScheduler$$anonfun$cleanUpAfterSchedulerStop$1.apply(DAGScheduler.scala:703)
    2. org.apache.spark.scheduler.DAGScheduler$$anonfun$cleanUpAfterSchedulerStop$1.apply(DAGScheduler.scala:702)
    2 frames
  3. Scala
    HashSet.foreach
    1. scala.collection.mutable.HashSet.foreach(HashSet.scala:79)
    1 frame
  4. Spark
    DoubleRDDFunctions.sum
    1. org.apache.spark.scheduler.DAGScheduler.cleanUpAfterSchedulerStop(DAGScheduler.scala:702)
    2. org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onStop(DAGScheduler.scala:1514)
    3. org.apache.spark.util.EventLoop.stop(EventLoop.scala:84)
    4. org.apache.spark.scheduler.DAGScheduler.stop(DAGScheduler.scala:1438)
    5. org.apache.spark.SparkContext$$anonfun$stop$7.apply$mcV$sp(SparkContext.scala:1724)
    6. org.apache.spark.util.Utils$.tryLogNonFatalError(Utils.scala:1185)
    7. org.apache.spark.SparkContext.stop(SparkContext.scala:1723)
    8. org.apache.spark.scheduler.cluster.YarnClientSchedulerBackend$MonitorThread.run(YarnClientSchedulerBackend.scala:146)
    9. org.apache.spark.scheduler.DAGScheduler.runJob(DAGScheduler.scala:567)
    10. org.apache.spark.SparkContext.runJob(SparkContext.scala:1824)
    11. org.apache.spark.SparkContext.runJob(SparkContext.scala:1944)
    12. org.apache.spark.rdd.RDD$$anonfun$fold$1.apply(RDD.scala:1063)
    13. org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
    14. org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:108)
    15. org.apache.spark.rdd.RDD.withScope(RDD.scala:310)
    16. org.apache.spark.rdd.RDD.fold(RDD.scala:1057)
    17. org.apache.spark.rdd.DoubleRDDFunctions$$anonfun$sum$1.apply$mcD$sp(DoubleRDDFunctions.scala:34)
    18. org.apache.spark.rdd.DoubleRDDFunctions$$anonfun$sum$1.apply(DoubleRDDFunctions.scala:34)
    19. org.apache.spark.rdd.DoubleRDDFunctions$$anonfun$sum$1.apply(DoubleRDDFunctions.scala:34)
    20. org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)
    21. org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:108)
    22. org.apache.spark.rdd.RDD.withScope(RDD.scala:310)
    23. org.apache.spark.rdd.DoubleRDDFunctions.sum(DoubleRDDFunctions.scala:33)
    23 frames
  5. com.radius.core
    SparkUtils$.coalesceRdd
    1. com.radius.core.util.SparkUtils$.estimateNewPartitionsNum(SparkUtils.scala:41)
    2. com.radius.core.util.SparkUtils$.coalesceRdd(SparkUtils.scala:35)
    2 frames
  6. com.radius.distiller
    Execute.main
    1. com.radius.distiller.Distiller.saveExtract(Distiller.scala:75)
    2. com.radius.distiller.Execute$.run(Execute.scala:55)
    3. com.radius.distiller.Execute$.main(Execute.scala:29)
    4. com.radius.distiller.Execute.main(Execute.scala)
    4 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  8. Spark
    SparkSubmit.main
    1. org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:674)
    2. org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)
    3. org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)
    4. org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120)
    5. org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
    5 frames