Ubuntu 获得';检查flume.conf是否有更改';循环

Ubuntu 获得';检查flume.conf是否有更改';循环,ubuntu,hadoop,flume,flume-ng,Ubuntu,Hadoop,Flume,Flume Ng,我使用ApacheFlume1.4.0收集日志文件(auth.log)并存储在HDFS(Hadoop2.6.0)中。使用的命令是: bin/flume-ng agent --conf ./conf/ -f flume.conf -Dflume.root.logger=DEBUG,console -n agent flume.conf文件包含以下内容: agent.channels.memory-channel.type = memory agent.sources.tail-source.

我使用ApacheFlume1.4.0收集日志文件(auth.log)并存储在HDFS(Hadoop2.6.0)中。使用的命令是:

 bin/flume-ng agent --conf ./conf/ -f flume.conf -Dflume.root.logger=DEBUG,console -n agent
flume.conf文件包含以下内容:

agent.channels.memory-channel.type = memory

agent.sources.tail-source.type = exec
agent.sources.tail-source.command = tail -F /var/log/auth.log
agent.sources.tail-source.channels = memory-channel

agent.sinks.log-sink.channel = memory-channel
agent.sinks.log-sink.type = logger
agent.sinks.hdfs-sink.channel = memory-channel
agent.sinks.hdfs-sink.type = hdfs
agent.sinks.hdfs-sink.hdfs.path = hdfs://localhost:54310/usr/auth.log
agent.sinks.hdfs-sink.hdfs.fileType = DataStream

agent.channels = memory-channel
agent.sources = tail-source
agent.sinks = log-sink hdfs-sink
运行命令后,以下消息在循环中不断重复:

(conf-file-poller-0) [DEBUG - org.apache.flume.node.PollingPropertiesFileConfigurationProvider$FileWatcherRunnable.run(PollingPropertiesFileConfigurationProvider.java:126)] Checking file:flume.conf for changes

原因可能是什么?

默认情况下,Flume设计为每30秒检查一次配置文件以查找更改。它会重新创建受影响的组件(源、接收器或通道),以便应用新配置。如果要禁用此行为,只需使用
--no reload conf
选项启动代理即可。

进行了更改。谢谢。