ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject ambari git commit: AMBARI-9493. Failed to start Datanode with non-default umask (aonishuk)
Date Thu, 26 Feb 2015 14:49:34 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.0.0 c58bf8a55 -> bac6f7f53


AMBARI-9493. Failed to start Datanode with non-default umask (aonishuk)


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

Branch: refs/heads/branch-2.0.0
Commit: bac6f7f53de7794e9ecda160978979154ed8ae29
Parents: c58bf8a
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Thu Feb 26 16:49:27 2015 +0200
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Thu Feb 26 16:49:27 2015 +0200

----------------------------------------------------------------------
 ambari-server/src/main/python/ambari_server/serverSetup.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/bac6f7f5/ambari-server/src/main/python/ambari_server/serverSetup.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/python/ambari_server/serverSetup.py b/ambari-server/src/main/python/ambari_server/serverSetup.py
index 5cc7825..1c6dbbc 100644
--- a/ambari-server/src/main/python/ambari_server/serverSetup.py
+++ b/ambari-server/src/main/python/ambari_server/serverSetup.py
@@ -667,6 +667,7 @@ class JDKSetupLinux(JDKSetup):
     self.JAVA_BIN = "java"
 
     self.CREATE_JDK_DIR_CMD = "/bin/mkdir -p {0}"
+    self.CHMOD_JDK_DIR_CMD = "chmod a+x {0}"
     self.MAKE_FILE_EXECUTABLE_CMD = "chmod a+x {0}"
 
     # use --no-same-owner when running as root to prevent uucp as the user (AMBARI-6478)
@@ -677,6 +678,7 @@ class JDKSetupLinux(JDKSetup):
     print "Installing JDK to {0}".format(jdk_inst_dir)
 
     retcode, out, err = run_os_command(self.CREATE_JDK_DIR_CMD.format(jdk_inst_dir))
+    retcode, out, err = run_os_command(self.CHMOD_JDK_DIR_CMD.format(jdk_inst_dir))
     savedPath = os.getcwd()
     os.chdir(jdk_inst_dir)
 
@@ -687,7 +689,7 @@ class JDKSetupLinux(JDKSetup):
       elif java_inst_file.endswith(".gz"):
         retcode, out, err = run_os_command(self.UNTAR_JDK_ARCHIVE.format(java_inst_file))
       else:
-        err = "JDK installation failed.Unknown file mask."
+        err = "JDK installation failed.Unknown file extension."
         raise FatalException(1, err)
     finally:
       os.chdir(savedPath)


Mime
View raw message