You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sw...@apache.org on 2014/11/01 01:53:00 UTC

git commit: AMBARI-8089. 'Refresh Yarn capacity scheduler' action failed on secured HDP-2.2. (swagle)

Repository: ambari
Updated Branches:
  refs/heads/trunk f3fe2eb21 -> 2ca27fadc


AMBARI-8089. 'Refresh Yarn capacity scheduler' action failed on secured HDP-2.2. (swagle)


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

Branch: refs/heads/trunk
Commit: 2ca27fadc6a6cc077b57cbbe85deab1f7fe26d85
Parents: f3fe2eb
Author: Siddharth Wagle <sw...@hortonworks.com>
Authored: Fri Oct 31 17:49:49 2014 -0700
Committer: Siddharth Wagle <sw...@hortonworks.com>
Committed: Fri Oct 31 17:52:05 2014 -0700

----------------------------------------------------------------------
 .../stacks/HDP/2.0.6/services/YARN/package/scripts/service.py     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2ca27fad/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/YARN/package/scripts/service.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/YARN/package/scripts/service.py b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/YARN/package/scripts/service.py
index 466f637..7250835 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/YARN/package/scripts/service.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/YARN/package/scripts/service.py
@@ -68,7 +68,8 @@ def service(componentName, action='start', serviceName='yarn'):
          action="delete")
 
   elif action == 'refreshQueues':
-    refresh_cmd = format("export HADOOP_LIBEXEC_DIR={hadoop_libexec_dir} && {yarn_container_bin}/yarn rmadmin -refreshQueues")
+    rm_kinit_cmd = params.rm_kinit_cmd
+    refresh_cmd = format("{rm_kinit_cmd} export HADOOP_LIBEXEC_DIR={hadoop_libexec_dir} && {yarn_container_bin}/yarn rmadmin -refreshQueues")
 
     Execute(refresh_cmd,
             user=usr,