You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chukwa.apache.org by ey...@apache.org on 2010/02/19 20:23:28 UTC

svn commit: r911947 - /hadoop/chukwa/trunk/bin/slaves.sh

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: /" &