[ 
https://issues.apache.org/jira/browse/SPARK-39541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Apache Spark reassigned SPARK-39541:
------------------------------------

    Assignee:     (was: Apache Spark)

> [Yarn] Diagnostics of yarn UI did not display the exception of driver when 
> driver exit before regiserAM
> -------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-39541
>                 URL: https://issues.apache.org/jira/browse/SPARK-39541
>             Project: Spark
>          Issue Type: Improvement
>          Components: YARN
>    Affects Versions: 3.3.0
>            Reporter: liangyongyuan
>            Priority: Major
>
> If commit a job in yarn cluster mode and driver exited before 
> registerAM,Diagnostics of yarn UI did not show the exception that was throwed 
> by driver .Yarn UI only show :
> Application application_xxx failed 1 times (global limit =10; local limit is 
> =1) due to AM Container for appattempt_xxx_000001 exited with exitCode: 13
>  
> User must view spark log to find the real reason.for example,spark log shows 
> {code:java}
> 2022-06-21,17:58:28,273 ERROR org.apache.spark.deploy.yarn.ApplicationMaster: 
> User class threw exception: java.lang.ArithmeticException: / by zero
> java.lang.ArithmeticException: / by zero
>       at org.examples.appErrorDemo3$.main(appErrorDemo3.scala:10)
>       at org.examples.appErrorDemo3.main(appErrorDemo3.scala)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:498)
>       at 
> org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:736)
>  {code}
>  
> The reason of this issue is that if driver would not call unregisterAM exited 
> before registerAM ,then yarn UI could not show the real diagnostic 
> information.
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to