Noel Duffy 2012-01-20, 02:16
The FileTailer adaptor is located in a subpackage called filetailer.
Try this command instead:
add fileTailer.FileTailer /tmp/foo 0
Sorry about the documentation error. In addition, I would recomend using
add fileTailer.CharFileTailingAdaptorUTF8NewLineEscaped /tmp/foo 0
This supports UTF-8 characters and using new line character as
delimiter to stream log entry.
Hope this helps.
On Thu, Jan 19, 2012 at 6:16 PM, Noel Duffy <[EMAIL PROTECTED]> wrote:
> In the documentation for the chukwa agent for version 0.4.0, at this url:
> There is a section titled Adaptors which begins:
>> This section lists the standard adaptors, and the arguments they take.
>> FileAdaptor: Pushes a whole file, as one Chunk, then exits. Takes one mandatory parameter; the file to push.
>> add FileTailer FooData /tmp/foo 0
> However, I believe this last line should read:
>> add FileAdaptor FooData /tmp/foo 0
> $ telnet localhost 9093
> Trying 127.0.0.1...
> Connected to localhost.localdomain (127.0.0.1).
> Escape character is '^]'.
> add FileTailer FooData /tmp/foo 0
> org.apache.hadoop.chukwa.datacollection.adaptor.AdaptorException: Can't load class FileTailer
> add FileAdaptor FooData /tmp/foo 0
> OK add completed; new ID is adaptor_7f93516f352c4aaa08140e7b5a1d52f4