hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r375684 - /lucene/hadoop/trunk/bin/hadoop-daemon.sh
Date Tue, 07 Feb 2006 20:32:29 GMT
Author: cutting
Date: Tue Feb  7 12:32:26 2006
New Revision: 375684

URL: http://svn.apache.org/viewcvs?rev=375684&view=rev
Log:
Log to logs directory by default.

Modified:
    lucene/hadoop/trunk/bin/hadoop-daemon.sh

Modified: lucene/hadoop/trunk/bin/hadoop-daemon.sh
URL: http://svn.apache.org/viewcvs/lucene/hadoop/trunk/bin/hadoop-daemon.sh?rev=375684&r1=375683&r2=375684&view=diff
==============================================================================
--- lucene/hadoop/trunk/bin/hadoop-daemon.sh (original)
+++ lucene/hadoop/trunk/bin/hadoop-daemon.sh Tue Feb  7 12:32:26 2006
@@ -36,9 +36,13 @@
   fi
 done
 
+# the root of the Hadoop installation
+root=`dirname $this`/..
+
 # get log directory
 if [ "$HADOOP_LOG_DIR" = "" ]; then
-  HADOOP_LOG_DIR=$PWD
+  HADOOP_LOG_DIR=$root/logs
+  mkdir -p $HADOOP_LOG_DIR
 fi
 
 if [ "$HADOOP_PID_DIR" = "" ]; then
@@ -64,7 +68,6 @@
       fi
     fi
 
-    root=`dirname $this`/..
     if [ "$HADOOP_MASTER" != "" ]; then
       echo rsync from $HADOOP_MASTER
       rsync -a --delete --exclude=.svn $HADOOP_MASTER/ $root



Mime
View raw message