You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2011/06/05 10:41:16 UTC

svn commit: r1132100 - /incubator/mesos/trunk/ec2/deploy.lucid64/root/mesos-ec2/setup-slave

Author: benh
Date: Sun Jun  5 08:41:16 2011
New Revision: 1132100

URL: http://svn.apache.org/viewvc?rev=1132100&view=rev
Log:
More fixes

Modified:
    incubator/mesos/trunk/ec2/deploy.lucid64/root/mesos-ec2/setup-slave

Modified: incubator/mesos/trunk/ec2/deploy.lucid64/root/mesos-ec2/setup-slave
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/ec2/deploy.lucid64/root/mesos-ec2/setup-slave?rev=1132100&r1=1132099&r2=1132100&view=diff
==============================================================================
--- incubator/mesos/trunk/ec2/deploy.lucid64/root/mesos-ec2/setup-slave (original)
+++ incubator/mesos/trunk/ec2/deploy.lucid64/root/mesos-ec2/setup-slave Sun Jun  5 08:41:16 2011
@@ -21,7 +21,8 @@ XFS_MOUNT_OPTS="defaults,noatime,nodirat
 # (for example /mnt, /mnt2, and so on)
 function create_hadoop_dirs {
   location=$1
-  mkdir -p $location/hdfs/dfs $location/hadoop/tmp $location/hadoop/mrlocal
+  mkdir -p $location/hdfs/dfs $location/hadoop/tmp
+  mkdir -p $location/hadoop/mrlocal $location/hadoop/mrlocal2
 }
 
 # Set up Hadoop and Mesos directories in /mnt
@@ -39,6 +40,8 @@ function setup_extra_volume {
     mkdir -p $mount_point
     mount -o $EXT3_MOUNT_OPTS $device $mount_point
     echo "$device $mount_point auto $EXT3_MOUNT_OPTS 0 0" >> /etc/fstab
+  fi
+  if [[ -e $mount_point ]]; then
     create_hadoop_dirs $mount_point
   fi
 }