ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathanhur...@apache.org
Subject [02/19] ambari git commit: AMBARI-21541 Restart services failed post Ambari Upgrade (dili)
Date Tue, 25 Jul 2017 14:35:06 GMT
AMBARI-21541 Restart services failed post Ambari Upgrade (dili)


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

Branch: refs/heads/branch-feature-AMBARI-21450
Commit: ab1d378d2d2b244eec4fea6a87dca54b4d42073e
Parents: d4244f5
Author: Di Li <dili@apache.org>
Authored: Thu Jul 20 20:46:09 2017 -0400
Committer: Di Li <dili@apache.org>
Committed: Thu Jul 20 20:46:09 2017 -0400

----------------------------------------------------------------------
 .../4.0/hooks/before-ANY/scripts/shared_initialization.py          | 2 +-
 .../4.2.5/hooks/before-ANY/scripts/shared_initialization.py        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ab1d378d/ambari-server/src/main/resources/stacks/BigInsights/4.0/hooks/before-ANY/scripts/shared_initialization.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/BigInsights/4.0/hooks/before-ANY/scripts/shared_initialization.py
b/ambari-server/src/main/resources/stacks/BigInsights/4.0/hooks/before-ANY/scripts/shared_initialization.py
index 1c98fb8..ccb0293 100755
--- a/ambari-server/src/main/resources/stacks/BigInsights/4.0/hooks/before-ANY/scripts/shared_initialization.py
+++ b/ambari-server/src/main/resources/stacks/BigInsights/4.0/hooks/before-ANY/scripts/shared_initialization.py
@@ -147,7 +147,7 @@ def get_uid(user):
        mode=0555)
     ignore_groupsusers_create_str = str(params.ignore_groupsusers_create).lower()
     newUid=commands.getoutput(format("{tmp_dir}/changeUid.sh {user}"))
-    return newUid
+    return int(newUid)
     
 def setup_hadoop_env():
   import params

http://git-wip-us.apache.org/repos/asf/ambari/blob/ab1d378d/ambari-server/src/main/resources/stacks/BigInsights/4.2.5/hooks/before-ANY/scripts/shared_initialization.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/BigInsights/4.2.5/hooks/before-ANY/scripts/shared_initialization.py
b/ambari-server/src/main/resources/stacks/BigInsights/4.2.5/hooks/before-ANY/scripts/shared_initialization.py
index 930ed1f..9741397 100755
--- a/ambari-server/src/main/resources/stacks/BigInsights/4.2.5/hooks/before-ANY/scripts/shared_initialization.py
+++ b/ambari-server/src/main/resources/stacks/BigInsights/4.2.5/hooks/before-ANY/scripts/shared_initialization.py
@@ -160,7 +160,7 @@ def get_uid(user):
        mode=0555)
     ignore_groupsusers_create_str = str(params.ignore_groupsusers_create).lower()
     newUid=commands.getoutput(format("{tmp_dir}/changeUid.sh {user}"))
-    return newUid
+    return int(newUid)
 
 def setup_hadoop_env():
   import params


Mime
View raw message