谁能告诉我cloudera在哪里保存水槽代理文件?实际上,我想创建另一个水槽代理,例如我想同时运行两个水槽代理但找不到方法。
问问题
255 次
1 回答
0
在CDH 5.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 = 100
flume-ng 和 flume-ng-agent 脚本文件位于以下路径。
/usr/bin/flume-ng
/etc/init.d/flume-ng-agent
于 2015-04-11T06:21:06.653 回答