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 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 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 Tim Raynor
, 11 months ago
Yarn application has already ended! It might have been killed or unable to launch application master.
via Stack Overflow by Joseph Hwang
, 4 months ago
Yarn application has already ended! It might have been killed or unable to launch application master.
via Stack Overflow by Ashesh Nair
, 1 year 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:149)
at org.apache.spark.SparkContext.(SparkContext.scala:500)
at org.apache.spark.SparkContext$.getOrCreate(SparkContext.scala:2256)
at org.apache.spark.sql.SparkSession$Builder$$anonfun$8.apply(SparkSession.scala:831)
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.