flume-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "leiwangouc@gmail.com" <leiwang...@gmail.com>
Subject Flume source cmd using frequently changing file
Date Wed, 11 Mar 2015 02:01:05 GMT

I have a flume configuraton and following is the source configuraton.

agent1.sources.source1.type = exec 
agent1.sources.source1.command =tail -F /srv/logs/tracking_pv.log  |  /usr/bin/python /srv/apps/apache-flume-1.4.0-cdh4.6.0-bin/conf/gettag.py
-1 
agent1.sources.source1.shell = /bin/bash -c 
agent1.sources.source1.restart = true 
agent1.sources.source1.restartThrottle = 8000 
agent1.sources.source1.batchSize = 100

gettag.py will read a file which changed frequently.
How do I achieve this instead of restarting the flume process?



leiwangouc@gmail.com

Mime
View raw message