Flume代理程序未使用file_roll将数据传输到源文件夹

时间:2016-04-21 10:46:05

标签: hadoop flume

您正在使用以下conf文件代理。

当我运行代理时,我在sink文件夹中没有得到任何东西。有人可以就此提出建议吗?

# Define a memory channel called ch1 on agent1
agent1.channels.ch1.type = memory

agent1.sources.spool.type = spooldir
agent1.sources.spool.channels = ch1
agent1.sources.spool.spoolDir = /logs/source
agent1.sources.spool.fileHeader = true

agent1.sinks.fr1.type = file_roll
agent1.sinks.fr1.channel = ch1
agent1.sinks.fr1.sink.directory = /logs/sink

agent1.channels = ch1
agent1.sources = spool
agent1.sinks = fr1

0 个答案:

没有答案