Преглед изворни кода

AMBARI-8178. Slider View: Unable to destroy Failed Slider app (srimanth)

Srimanth Gunturi пре 10 година
родитељ
комит
ec37a765e2

+ 1 - 1
contrib/views/slider/docs/index.md

@@ -151,7 +151,7 @@ Next, extract all identities into a single keytab file
 * 
 ```
 kadmin.local -q "xst -k /path/to/keytab/slider-user.STORM.nimbus.keytab slider-user/[host-name]@EXAMPLE.COM"
-kadmin.local -q "xst -k /path/to/keytab/slider-user.STORM.client.keytab slider-user/[host-name]@EXAMPLE.COM"
+kadmin.local -q "xst -k /path/to/keytab/slider-user.STORM.client.keytab slider-user@EXAMPLE.COM"
 ```
 
 The keytab file containing multiple identities should then be copied over to the keytabs location on the host where the view is hosted.

+ 2 - 2
contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java

@@ -585,10 +585,10 @@ public class SliderAppsViewControllerImpl implements SliderAppsViewController {
         return null;
       }
     }
-    if (YarnApplicationState.KILLED.equals(yarnApp.getYarnApplicationState())) {
+    if (YarnApplicationState.KILLED.equals(yarnApp.getYarnApplicationState()) || YarnApplicationState.FAILED.equals(yarnApp.getYarnApplicationState())) {
       try {
         if (sliderClient.actionExists(yarnApp.getName(), false) != LauncherExitCodes.EXIT_SUCCESS) {
-          // YARN application is killed, and no HDFS content - Application has been destroyed.
+          // YARN application is killed or failed, and no HDFS content - Application has been destroyed.
           return null;
         }
       } catch (UnknownApplicationInstanceException e) {