Browse Source

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

Andrew Onishuk 10 years ago
parent
commit
6ca2fc4c2d
1 changed files with 6 additions and 0 deletions
  1. 6 0
      ambari-agent/conf/unix/install-helper.sh

+ 6 - 0
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(){