ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vbrodets...@apache.org
Subject ambari git commit: AMBARI-13246. Oozie server fails to start with customized user.(vbrodetskyi)
Date Fri, 25 Sep 2015 21:07:25 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 631ea43d6 -> 67b9d4839


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/trunk
Commit: 67b9d4839f4260b782ffd19f4f617174a1bc624f
Parents: 631ea43
Author: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Authored: Sat Sep 26 00:06:52 2015 +0300
Committer: Vitaly Brodetskyi <vbrodetskyi@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)})


Mime
View raw message