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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Change the queue name to hadoop

Solutions on the web

via Stack Overflow by Tim Raynor
, 10 months ago
Yarn application has already ended! It might have been killed or unable to launch application master.
via Stack Overflow by Akshay Chopra
, 4 months ago
Yarn application has already ended! It might have been killed or unable to launch application master.
via Stack Overflow by Ravi
, 2 years ago
Yarn application has already ended! It might have been killed or unable to launch application master.
via Stack Overflow by marjan
, 1 year ago
Yarn application has already ended! It might have been killed or unable to launch application master.
via Stack Overflow by Kami Wan
, 1 year ago
Yarn application has already ended! It might have been killed or unable to launch application master.
via Stack Overflow by Joseph Hwang
, 3 months ago
Yarn application has already ended! It might have been killed or unable to launch application master.
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(YarnClientSchedulerBackend.scala:85)
at org.apache.spark.scheduler.cluster.YarnClientSchedulerBackend.start(YarnClientSchedulerBackend.scala:62)
at org.apache.spark.scheduler.TaskSchedulerImpl.start(TaskSchedulerImpl.scala:156)
at org.apache.spark.SparkContext.(SparkContext.scala:509)
at org.apache.spark.SparkContext$.getOrCreate(SparkContext.scala:2313)
at org.apache.spark.sql.SparkSession$Builder$$anonfun$6.apply(SparkSession.scala:868)
at scala.Option.getOrElse(Option.scala:121)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
2 times, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.