[jira] [Commented] (SPARK-39541) [Yarn] Diagnostics of yarn UI did not display the exception of driver when driver exit before regiserAM

2022-06-21 Thread Apache Spark (Jira)


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

Apache Spark commented on SPARK-39541:
--

User 'lyy-pineapple' has created a pull request for this issue:
https://github.com/apache/spark/pull/36952

> [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_01 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



[jira] [Commented] (SPARK-39541) [Yarn] Diagnostics of yarn UI did not display the exception of driver when driver exit before regiserAM

2022-06-21 Thread liangyongyuan (Jira)


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

liangyongyuan commented on SPARK-39541:
---

I want to try to solve this problem. I already have a solution and have tested 
it

> [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_01 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