AMBARI-21393. stackadvisor error during cluster creation, getOldValue is not defined (amagyar)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b2f5ad72 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b2f5ad72 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b2f5ad72 Branch: refs/heads/branch-feature-AMBARI-21348 Commit: b2f5ad72c264f83a65f53f671f3dfe1fd6cc4e4c Parents: d6d6d74 Author: Attila Magyar <amag...@hortonworks.com> Authored: Mon Jul 3 13:24:49 2017 +0200 Committer: Attila Magyar <amag...@hortonworks.com> Committed: Mon Jul 3 13:24:49 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/b2f5ad72/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 c1c1f13..b4d4a02 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 = getOldValue(self, services, "hive-env", "hive_user") + old_hive_user_name = self.getOldValue(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() == "":