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 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

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

    Stack Overflow | 6 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 months 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 | 5 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
    samebug tip
    Change the queue name to hadoop
  6. 0
    samebug tip
    You might need to add the permission 777, run this in your cmd (as admin) "C:\hadoop\bin>winutils.exe chmod 777 \tmp\hive"
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