2012-12-26 43 views

回答

0

的conf的水槽.conf文件都

agent12.sources = source1 
agent12.channels = channel1 
agent12.sinks = HDFS 

agent12.sources.source1.type = exec 
agent12.sources.source1.command = tail -F /usr/sap/sample.txt 


agent12.sources.source1.channels = channel1 
agent12.sinks.HDFS.channels = channel1 


agent12.sinks.HDFS.type = hdfs 

agent12.sinks.HDFS.hdfs.path= hdfs://172.18.36.248:50070:user/root/xz 


agent12.channels.channel1.type =memory 
agent12.channels.channel1.capacity = 1000 

劑使用

/usr/bin/flume-ng agent -n agent12 -c usr/lib//flume-ng/conf/sample.conf -f /usr/lib/flume-ng/conf/flume-conf.properties.template