chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r911947 - /hadoop/chukwa/trunk/bin/slaves.sh
Date Fri, 19 Feb 2010 19:23:28 GMT
Author: eyang
Date: Fri Feb 19 19:23:28 2010
New Revision: 911947

URL: http://svn.apache.org/viewvc?rev=911947&view=rev
Log:
CHUKWA-455. Updated slaves.sh to detect collectors list.

Modified:
    hadoop/chukwa/trunk/bin/slaves.sh

Modified: hadoop/chukwa/trunk/bin/slaves.sh
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/bin/slaves.sh?rev=911947&r1=911946&r2=911947&view=diff
==============================================================================
--- hadoop/chukwa/trunk/bin/slaves.sh (original)
+++ hadoop/chukwa/trunk/bin/slaves.sh Fri Feb 19 19:23:28 2010
@@ -57,7 +57,7 @@
   fi
 fi
 
-for slave in `cat "$HOSTLIST"`; do
+for slave in `cat "$HOSTLIST" | sed -e 's/^http:\/\///;s/:[0-9]*.*//'`; do
  if [ "$slave" != "localhost" -a "$slave" != "127.0.0.1" ]; then
    ssh $CHUKWA_SSH_OPTS $slave $"${@// /\\ }" \
       2>&1 | sed "s/^/$slave: /" &



Mime
View raw message