You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2015/03/06 12:54:46 UTC

[2/2] ambari git commit: AMBARI-9958. Hive (Hive metastore start...) start failed (umask=027) (aonishuk)

AMBARI-9958. Hive (Hive metastore start...) start failed (umask=027) (aonishuk)


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

Branch: refs/heads/branch-2.0.0
Commit: 6ca2fc4c2dc0dc883a87d33428cb7ff1570a26c7
Parents: cec514a
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Fri Mar 6 13:54:20 2015 +0200
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Fri Mar 6 13:54:20 2015 +0200

----------------------------------------------------------------------
 ambari-agent/conf/unix/install-helper.sh | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6ca2fc4c/ambari-agent/conf/unix/install-helper.sh
----------------------------------------------------------------------
diff --git a/ambari-agent/conf/unix/install-helper.sh b/ambari-agent/conf/unix/install-helper.sh
index e0c348c..75acab7 100644
--- a/ambari-agent/conf/unix/install-helper.sh
+++ b/ambari-agent/conf/unix/install-helper.sh
@@ -56,6 +56,12 @@ do_install(){
   if [ $? -ne 0 ] ; then
     echo '#includedir /etc/sudoers.d' >> /etc/sudoers
   fi
+  
+  # on nano Ubuntu, when umask=027 those folders are created without 'x' bit for 'others'.
+  # which causes failures when hadoop users try to access tmp_dir
+  chmod a+x /var/lib/ambari-agent
+  chmod a+x /var/lib/ambari-agent/data
+  chmod a+x /var/lib/ambari-agent/data/tmp
 }
 
 do_remove(){