hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r707943 - in /hadoop/core/trunk: CHANGES.txt bin/slaves.sh
Date Sun, 26 Oct 2008 06:45:39 GMT
Author: omalley
Date: Sat Oct 25 23:45:38 2008
New Revision: 707943

URL: http://svn.apache.org/viewvc?rev=707943&view=rev
Log:
HADOOP-4454. Allow # comments in slaves file. (Rama Ramasamy via omalley)

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/bin/slaves.sh

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=707943&r1=707942&r2=707943&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Sat Oct 25 23:45:38 2008
@@ -56,6 +56,8 @@
 
     HADOOP-4510. Make getTaskOutputPath public. (Chris Wensel via omalley)
 
+    HADOOP-4454. Allow # comments in slaves file. (Rama Ramasamy via omalley)
+
   OPTIMIZATIONS
 
   BUG FIXES

Modified: hadoop/core/trunk/bin/slaves.sh
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/bin/slaves.sh?rev=707943&r1=707942&r2=707943&view=diff
==============================================================================
--- hadoop/core/trunk/bin/slaves.sh (original)
+++ hadoop/core/trunk/bin/slaves.sh Sat Oct 25 23:45:38 2008
@@ -57,7 +57,7 @@
   fi
 fi
 
-for slave in `cat "$HOSTLIST"`; do
+for slave in `cat "$HOSTLIST"|sed  "s/#.*$//;/^$/d"`; do
  ssh $HADOOP_SSH_OPTS $slave $"${@// /\\ }" \
    2>&1 | sed "s/^/$slave: /" &
  if [ "$HADOOP_SLAVE_SLEEP" != "" ]; then



Mime
View raw message