You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vb...@apache.org on 2015/09/25 23:05:25 UTC
ambari git commit: AMBARI-13246. Oozie server fails to start with
customized user.(vbrodetskyi)
Repository: ambari
Updated Branches:
refs/heads/branch-2.1 34068e087 -> c936847b0
AMBARI-13246. Oozie server fails to start with customized user.(vbrodetskyi)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c936847b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c936847b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c936847b
Branch: refs/heads/branch-2.1
Commit: c936847b00dbfd75901f508cc2b6886663e97343
Parents: 34068e0
Author: Vitaly Brodetskyi <vb...@hortonworks.com>
Authored: Sat Sep 26 00:04:50 2015 +0300
Committer: Vitaly Brodetskyi <vb...@hortonworks.com>
Committed: Sat Sep 26 00:04:50 2015 +0300
----------------------------------------------------------------------
.../src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/c936847b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
index b825d31..8deff04 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
@@ -209,7 +209,7 @@ class HDP206StackAdvisor(DefaultStackAdvisor):
# Remove old properties if user was renamed
userOldValue = getOldValue(self, services, user_properties["config"], user_properties["propertyName"])
- if userOldValue is not None:
+ if userOldValue is not None and userOldValue != user_name:
putCoreSitePropertyAttribute("hadoop.proxyuser.{0}.hosts".format(userOldValue), 'delete', 'true')
putCoreSitePropertyAttribute("hadoop.proxyuser.{0}.groups".format(userOldValue), 'delete', 'true')
services["forced-configurations"].append({"type" : "core-site", "name" : "hadoop.proxyuser.{0}.hosts".format(userOldValue)})