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

Stack Overflow | Newbie | 2 months ago
  1. 0

    SPARK : How to generate s3 file path dynamically using date diff

    Stack Overflow | 2 months ago | Newbie
    org.apache.spark.SparkException: Job 2 cancelled because SparkContext was shut down
  2. 0

    Job cancelled because SparkContext was shut down while saving dataframe as hive table

    Stack Overflow | 3 months ago | vatsal mevada
    org.apache.spark.SparkException: Job 2 cancelled because SparkContext was shut down
  3. 0

    Spark example Pi fails to run on yarn-client mode

    Unix & Linux | 5 months ago | Henry
    org.apache.spark.SparkException: Job 0 cancelled because SparkContext was shut down
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Talend Open Integration Solution | 6 months ago | lei ju
    org.apache.spark.SparkException: Job 1 cancelled because SparkContext was shut down
  6. 0

    SparkContext was shut down on long running as_h2o_frame

    GitHub | 2 months ago | jmuhlenkamp
    org.apache.spark.SparkException: Job 34 cancelled because SparkContext was shut down

  1. tyson925 1 times, last 6 days ago
  2. Nikolay Rybak 2 times, last 1 month ago
  3. tyson925 12 times, last 2 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 2 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:806)
    2. org.apache.spark.scheduler.DAGScheduler$$anonfun$cleanUpAfterSchedulerStop$1.apply(DAGScheduler.scala:804)
    2 frames
  3. Scala
    HashSet.foreach
    1. scala.collection.mutable.HashSet.foreach(HashSet.scala:79)
    1 frame
  4. Spark
    RDD.collect
    1. org.apache.spark.scheduler.DAGScheduler.cleanUpAfterSchedulerStop(DAGScheduler.scala:804)
    2. org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onStop(DAGScheduler.scala:1658)
    3. org.apache.spark.util.EventLoop.stop(EventLoop.scala:84)
    4. org.apache.spark.scheduler.DAGScheduler.stop(DAGScheduler.scala:1581)
    5. org.apache.spark.SparkContext$$anonfun$stop$7.apply$mcV$sp(SparkContext.scala:1731)
    6. org.apache.spark.util.Utils$.tryLogNonFatalError(Utils.scala:1229)
    7. org.apache.spark.SparkContext.stop(SparkContext.scala:1730)
    8. org.apache.spark.scheduler.cluster.YarnClientSchedulerBackend$MonitorThread.run(YarnClientSchedulerBackend.scala:147)
    9. org.apache.spark.scheduler.DAGScheduler.runJob(DAGScheduler.scala:620)
    10. org.apache.spark.SparkContext.runJob(SparkContext.scala:1832)
    11. org.apache.spark.SparkContext.runJob(SparkContext.scala:1845)
    12. org.apache.spark.SparkContext.runJob(SparkContext.scala:1858)
    13. org.apache.spark.SparkContext.runJob(SparkContext.scala:1929)
    14. org.apache.spark.rdd.RDD$$anonfun$collect$1.apply(RDD.scala:927)
    15. org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:150)
    16. org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:111)
    17. org.apache.spark.rdd.RDD.withScope(RDD.scala:316)
    18. org.apache.spark.rdd.RDD.collect(RDD.scala:926)
    18 frames
  5. Spark Project SQL
    HadoopFsRelation.cachedLeafStatuses
    1. org.apache.spark.sql.sources.HadoopFsRelation$.listLeafFilesInParallel(interfaces.scala:904)
    2. org.apache.spark.sql.sources.HadoopFsRelation$FileStatusCache.listLeafFiles(interfaces.scala:445)
    3. org.apache.spark.sql.sources.HadoopFsRelation$FileStatusCache.refresh(interfaces.scala:477)
    4. org.apache.spark.sql.sources.HadoopFsRelation.org$apache$spark$sql$sources$HadoopFsRelation$$fileStatusCache$lzycompute(interfaces.scala:489)
    5. org.apache.spark.sql.sources.HadoopFsRelation.org$apache$spark$sql$sources$HadoopFsRelation$$fileStatusCache(interfaces.scala:487)
    6. org.apache.spark.sql.sources.HadoopFsRelation.cachedLeafStatuses(interfaces.scala:494)
    6 frames
  6. org.apache.spark
    JSONRelation$$anonfun$4.apply
    1. org.apache.spark.sql.execution.datasources.json.JSONRelation$$anonfun$4.apply(JSONRelation.scala:110)
    2. org.apache.spark.sql.execution.datasources.json.JSONRelation$$anonfun$4.apply(JSONRelation.scala:109)
    2 frames
  7. Scala
    Option.getOrElse
    1. scala.Option.getOrElse(Option.scala:120)
    1 frame
  8. org.apache.spark
    JSONRelation.dataSchema
    1. org.apache.spark.sql.execution.datasources.json.JSONRelation.dataSchema$lzycompute(JSONRelation.scala:109)
    2. org.apache.spark.sql.execution.datasources.json.JSONRelation.dataSchema(JSONRelation.scala:108)
    2 frames
  9. Spark Project SQL
    HadoopFsRelation.schema
    1. org.apache.spark.sql.sources.HadoopFsRelation.schema$lzycompute(interfaces.scala:636)
    2. org.apache.spark.sql.sources.HadoopFsRelation.schema(interfaces.scala:635)
    2 frames
  10. org.apache.spark
    LogicalRelation.<init>
    1. org.apache.spark.sql.execution.datasources.LogicalRelation.<init>(LogicalRelation.scala:37)
    1 frame
  11. Spark Project SQL
    DataFrameReader.json
    1. org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:125)
    2. org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:136)
    3. org.apache.spark.sql.DataFrameReader.json(DataFrameReader.scala:263)
    3 frames
  12. Unknown
    $iwC.<init>
    1. $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:58)
    2. $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:63)
    3. $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:65)
    4. $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:67)
    5. $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:69)
    6. $iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:71)
    7. $iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:73)
    8. $iwC$$iwC$$iwC$$iwC.<init>(<console>:75)
    9. $iwC$$iwC$$iwC.<init>(<console>:77)
    10. $iwC$$iwC.<init>(<console>:79)
    11. $iwC.<init>(<console>:81)
    11 frames