Repository: ambari
Updated Branches:
  refs/heads/branch-1.7.0 d0d23e330 -> 7841caf36


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/7841caf3
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7841caf3
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7841caf3

Branch: refs/heads/branch-1.7.0
Commit: 7841caf363c98404e7d4de5995282fb3df53f885
Parents: d0d23e3
Author: Siddharth Wagle <swa...@hortonworks.com>
Authored: Fri Oct 31 17:53:34 2014 -0700
Committer: Siddharth Wagle <swa...@hortonworks.com>
Committed: Fri Oct 31 17:53:34 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/7841caf3/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,

Reply via email to