首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cloudera CDH 5.3.0

Cloudera CDH 5.3.0
EN

Stack Overflow用户
提问于 2015-04-11 05:17:10
回答 1查看 255关注 0票数 1

谁能告诉我cloudera在哪里保存flume代理文件?实际上,我想创建另一个flume代理,就像我想同时运行两个flume代理,但找不到方法。

EN

回答 1

Stack Overflow用户

发布于 2015-04-11 14:21:07

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

代码语言:javascript
复制
/etc/flume-ng/conf

您可以复制此文件,并根据需要在此文件中进行更改。如果在该路径上找不到文件,则以下是Flume Agent配置文件示例。

代码语言:javascript
复制
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脚本文件位于以下路径。

代码语言:javascript
复制
/usr/bin/flume-ng
/etc/init.d/flume-ng-agent
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29570835

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档