You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2015/09/30 16:45:39 UTC
[19/50] [abbrv] ambari git commit: AMBARI-13246. Oozie server fails
to start with customized user.(vbrodetskyi)
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/67b9d483
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/67b9d483
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/67b9d483
Branch: refs/heads/branch-dev-patch-upgrade
Commit: 67b9d4839f4260b782ffd19f4f617174a1bc624f
Parents: 631ea43
Author: Vitaly Brodetskyi <vb...@hortonworks.com>
Authored: Sat Sep 26 00:06:52 2015 +0300
Committer: Vitaly Brodetskyi <vb...@hortonworks.com>
Committed: Sat Sep 26 00:06:52 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/67b9d483/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)})