ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srima...@apache.org
Subject git commit: AMBARI-8178. Slider View: Unable to destroy Failed Slider app (srimanth)
Date Thu, 06 Nov 2014 07:28:46 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 6dc6cc782 -> ec37a765e


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


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ec37a765
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ec37a765
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ec37a765

Branch: refs/heads/trunk
Commit: ec37a765e2a2a9ea926ec3e83970cb23fb93a476
Parents: 6dc6cc7
Author: Srimanth Gunturi <sgunturi@hortonworks.com>
Authored: Wed Nov 5 23:11:10 2014 -0800
Committer: Srimanth Gunturi <sgunturi@hortonworks.com>
Committed: Wed Nov 5 23:28:33 2014 -0800

----------------------------------------------------------------------
 contrib/views/slider/docs/index.md                               | 2 +-
 .../apache/ambari/view/slider/SliderAppsViewControllerImpl.java  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ec37a765/contrib/views/slider/docs/index.md
----------------------------------------------------------------------
diff --git a/contrib/views/slider/docs/index.md b/contrib/views/slider/docs/index.md
index 3965cbf..e2329fe 100644
--- a/contrib/views/slider/docs/index.md
+++ b/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.

http://git-wip-us.apache.org/repos/asf/ambari/blob/ec37a765/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
index 1a52efa..c26c495 100644
--- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
+++ b/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) {


Mime
View raw message