谁能告诉我cloudera在哪里保存flume代理文件?实际上,我想创建另一个flume代理,就像我想同时运行两个flume代理,但找不到方法。
发布于 2015-04-11 14:21:07
在CDH5.3.0中,Cloudera在以下路径下提供了一个名为flume-conf.properties.template的模板配置文件。
/etc/flume-ng/conf您可以复制此文件,并根据需要在此文件中进行更改。如果在该路径上找不到文件,则以下是Flume Agent配置文件示例。
agent.sources = seqGenSrc
agent.channels = memoryChannel
agent.sinks = loggerSink
# For each one of the sources, the type is defined
agent.sources.seqGenSrc.type = seq
# The channel can be defined as follows.
agent.sources.seqGenSrc.channels = memoryChannel
# Each sink's type must be defined
agent.sinks.loggerSink.type = logger
#Specify the channel the sink should use
agent.sinks.loggerSink.channel = memoryChannel
# Each channel's type is defined.
agent.channels.memoryChannel.type = memory
# Other config values specific to each type of channel(sink or source)
# can be defined as well
# In this case, it specifies the capacity of the memory channel
agent.channels.memoryChannel.capacity = 100flume-ng和flume-ng-agent脚本文件位于以下路径。
/usr/bin/flume-ng
/etc/init.d/flume-ng-agenthttps://stackoverflow.com/questions/29570835
复制相似问题