org.apache.spark.SparkException: Yarn application has already ended! It might have been killed or unable to launch application master.

Stack Overflow | Kami Wan | 3 months ago
  1. 0

    Run Spark-shell with error :SparkContext: Error initializing SparkContext

    Stack Overflow | 3 months ago | Kami Wan
    org.apache.spark.SparkException: Yarn application has already ended! It might have been killed or unable to launch application master.
  2. 0

    Spark on Yarn client run with errors

    Stack Overflow | 4 weeks ago | cherah30
    org.apache.spark.SparkException: Yarn application has already ended! It might have been killed or unable to launch application master.
  3. 0

    Where can I set the spark.eventLog.enabled?

    Stack Overflow | 4 months ago | A.Dumas
    org.apache.spark.SparkException: A master URL must be set in your configuration
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Setting spark.driver.memory on SparkSession

    Stack Overflow | 2 months ago | user1710158
    org.apache.spark.SparkException: A master URL must be set in your configuration
  6. 0

    Spark 2.0 Thrift server not started in yarn mode

    Stack Overflow | 6 months ago | Churchill vins
    org.apache.spark.SparkException: Yarn application has already ended! It might have been killed or unable to launch application master.
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

    Yarn application has already ended! It might have been killed or unable to launch application master.

    at org.apache.spark.scheduler.cluster.YarnClientSchedulerBackend.waitForApplication()
  2. Spark
    SparkContext$.getOrCreate
    1. org.apache.spark.scheduler.cluster.YarnClientSchedulerBackend.waitForApplication(YarnClientSchedulerBackend.scala:85)
    2. org.apache.spark.scheduler.cluster.YarnClientSchedulerBackend.start(YarnClientSchedulerBackend.scala:62)
    3. org.apache.spark.scheduler.TaskSchedulerImpl.start(TaskSchedulerImpl.scala:149)
    4. org.apache.spark.SparkContext.<init>(SparkContext.scala:500)
    5. org.apache.spark.SparkContext$.getOrCreate(SparkContext.scala:2256)
    5 frames
  3. Spark Project SQL
    SparkSession$Builder$$anonfun$8.apply
    1. org.apache.spark.sql.SparkSession$Builder$$anonfun$8.apply(SparkSession.scala:831)
    2. org.apache.spark.sql.SparkSession$Builder$$anonfun$8.apply(SparkSession.scala:823)
    2 frames
  4. Scala
    Option.getOrElse
    1. scala.Option.getOrElse(Option.scala:121)
    1 frame
  5. Spark Project SQL
    SparkSession$Builder.getOrCreate
    1. org.apache.spark.sql.SparkSession$Builder.getOrCreate(SparkSession.scala:823)
    1 frame
  6. Spark REPL
    Main$.createSparkSession
    1. org.apache.spark.repl.Main$.createSparkSession(Main.scala:101)
    1 frame