chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asrab...@apache.org
Subject svn commit: r761164 - in /hadoop/chukwa/trunk: CHANGES.txt bin/startWatchingFile.sh
Date Thu, 02 Apr 2009 04:44:50 GMT
Author: asrabkin
Date: Thu Apr  2 04:44:49 2009
New Revision: 761164

URL: http://svn.apache.org/viewvc?rev=761164&view=rev
Log:
CHUKWA-62.  Script to start tailing files.

Added:
    hadoop/chukwa/trunk/bin/startWatchingFile.sh   (with props)
Modified:
    hadoop/chukwa/trunk/CHANGES.txt

Modified: hadoop/chukwa/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/CHANGES.txt?rev=761164&r1=761163&r2=761164&view=diff
==============================================================================
--- hadoop/chukwa/trunk/CHANGES.txt (original)
+++ hadoop/chukwa/trunk/CHANGES.txt Thu Apr  2 04:44:49 2009
@@ -3,6 +3,8 @@
   INCOMPATIBLE CHANGES
 
   NEW FEATURES
+
+    CHUKWA-62.  Add script to start tailing files.  (asrabkin)
     
     CHUKWA-12.  Add instrumention Api for Chukwa components.  (Jerome Boulon via asrabkin)
 

Added: hadoop/chukwa/trunk/bin/startWatchingFile.sh
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/bin/startWatchingFile.sh?rev=761164&view=auto
==============================================================================
--- hadoop/chukwa/trunk/bin/startWatchingFile.sh (added)
+++ hadoop/chukwa/trunk/bin/startWatchingFile.sh Thu Apr  2 04:44:49 2009
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+if [ $# = 0 -o $# -gt 2 ]; then
+  echo "usage: startWatchingFile <filename> [datatype]"
+  exit
+fi
+
+filename=$1
+
+if [ $# -ge 2 ]; then
+datatype=$2
+else
+datatype=raw
+fi
+nc localhost 9093 <<END
+add org.apache.hadoop.chukwa.datacollection.adaptor.filetailer.CharFileTailingAdaptorUTF8
 $datatype 0  $filename  0
+close
+END

Propchange: hadoop/chukwa/trunk/bin/startWatchingFile.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message