You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by am...@apache.org on 2017/07/03 11:46:30 UTC

ambari git commit: Revert "AMBARI-21393. stackadvisor error during cluster creation, getOldValue is not defined (amagyar)"

Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 8f145ce77 -> 563e37898


Revert "AMBARI-21393. stackadvisor error during cluster creation, getOldValue is not defined (amagyar)"

This reverts commit b2f5ad72c264f83a65f53f671f3dfe1fd6cc4e4c.


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

Branch: refs/heads/branch-2.5
Commit: 563e37898d0f9907a325cf7b396b775b5586cb48
Parents: 8f145ce
Author: Attila Magyar <am...@hortonworks.com>
Authored: Mon Jul 3 13:45:43 2017 +0200
Committer: Attila Magyar <am...@hortonworks.com>
Committed: Mon Jul 3 13:46:22 2017 +0200

----------------------------------------------------------------------
 .../src/main/resources/stacks/HDP/2.6/services/stack_advisor.py    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/563e3789/ambari-server/src/main/resources/stacks/HDP/2.6/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.6/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.6/services/stack_advisor.py
index b4d4a02..c1c1f13 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.6/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.6/services/stack_advisor.py
@@ -187,7 +187,7 @@ class HDP26StackAdvisor(HDP25StackAdvisor):
                 services["configurations"]["yarn-site"]["properties"] and 'hive-env' in services['configurations'] and \
                 'hive_user' in services['configurations']['hive-env']['properties']:
       hive_user_name = services['configurations']['hive-env']['properties']['hive_user']
-      old_hive_user_name = self.getOldValue(services, "hive-env", "hive_user")
+      old_hive_user_name = getOldValue(self, services, "hive-env", "hive_user")
       yarn_nm_kill_escape_user = services["configurations"]["yarn-site"]["properties"]["yarn.nodemanager.kill-escape.user"]
       if not hive_user_name in yarn_nm_kill_escape_user:
         if not yarn_nm_kill_escape_user or yarn_nm_kill_escape_user.strip() == "":