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

Stack Overflow | Tim Raynor | 2 weeks 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

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

    Stack Overflow | 5 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

    setup/run spark (spark-shell) on yarn client mode

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

    Spark on Yarn client run with errors

    Stack Overflow | 3 months ago | cherah30
    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.waitForApplicatio (YarnClientSchedulerBackend.scala:85)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    unable to bring up spark 2.1.0 manually on HDP 2.5.3

    Stack Overflow | 4 days ago | IWonderHow
    java.lang.NoClassDefFoundError: com/sun/jersey/api/client/config/ClientConfig
  6. 0

    Spark 2.0 Thrift server not started in yarn mode

    Stack Overflow | 9 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:156)
    4. org.apache.spark.SparkContext.<init>(SparkContext.scala:509)
    5. org.apache.spark.SparkContext$.getOrCreate(SparkContext.scala:2313)
    5 frames
  3. Spark Project SQL
    SparkSession$Builder$$anonfun$6.apply
    1. org.apache.spark.sql.SparkSession$Builder$$anonfun$6.apply(SparkSession.scala:868)
    2. org.apache.spark.sql.SparkSession$Builder$$anonfun$6.apply(SparkSession.scala:860)
    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:860)
    1 frame
  6. Spark REPL
    Main$.createSparkSession
    1. org.apache.spark.repl.Main$.createSparkSession(Main.scala:95)
    1 frame