【问题标题】:Cloudera CDH 5.3.0Cloudera CDH 5.3.0
【发布时间】:2015-04-10 21:17:09
【问题描述】:

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

【问题讨论】:

    标签: cloudera flume-ng


    【解决方案1】:

    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
    

    【讨论】:

    • 我正在通过 cloudera manager 寻找他们提供代理的地方。我在那里进行了更改,它运行良好。但我无法以图形方式添加另一个代理
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多