Cloudera CDH 5.3.0

时间:2015-04-10 21:17:10

标签: cloudera flume-ng

任何人都可以告诉我cloudera在哪里保存水槽代理文件?实际上,我想创建另一个水槽代理,比如我想同时运行两个水槽代理,但找不到办法。

1 个答案:

答案 0 :(得分:0)

CDH 5.3.0 中,Cloudera在以下路径中提供了名为flume-conf.properties.template的模板配置文件。

/etc/flume-ng/conf

您可以复制此文件,并根据您的要求对此文件进行更改。如果您无法在该路径上找到文件,则此处是Flume代理配置文件示例。

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