zoukankan      html  css  js  c++  java
  • flume配置及其执行命令

    flume-ng agent -c conf  conf/-f flume-http-logger.properties -Dflume.root.logger=DEBUG,console -n agent1
    
    ll, now that we've defined all of our components, tell
    # agent1 which ones we want to activate.
    agent1.channels = ch1
    agent1.sources = source1
    agent1.sinks = hdfssink1
    
    # Define a memory channel called ch1 on agent1
    agent1.channels.ch1.type = memory
    agent1.channels.ch1.capacity = 100000
    agent1.channels.ch1.transactionCapacity = 100000
    agent1.channels.ch1.keep-alive = 30
    
    # Define an Avro source called avro-source1 on agent1 and tell it
    # to bind to 0.0.0.0:41414. Connect it to channel ch1.
    agent1.sources.source1.channels = ch1
    agent1.sources.source1.type = http
    agent1.sources.source1.bind = 219.232.239.50
    agent1.sources.source1.port = 9527
    agent1.sources.source1.threads = 5
    
    # Define a logger sink that simply logs all events it receives
    # and connect it to the other end of the same channel.
    agent1.sinks.hdfssink1.hdfs.fileType=DataStream
    agent1.sinks.hdfssink1.channel = ch1
    agent1.sinks.hdfssink1.type = hdfs
    agent1.sinks.hdfssink1.hdfs.path = hdfs://219.232.239.50:8020/zhengqiang3
    agent1.sinks.hdfssink1.hdfs.writeFormat = Text
    agent1.sinks.hdfssink1.hdfs.fileType = DataStream
    agent1.sinks.hdfssink1.hdfs.rollInterval = 0
    agent1.sinks.hdfssink1.hdfs.rollSize = 134217728
    agent1.sinks.hdfssink1.hdfs.rollCount = 0
    agent1.sinks.hdfssink1.hdfs.batchSize = 1000
    agent1.sinks.hdfssink1.hdfs.txnEventMax = 1000
    

      

  • 相关阅读:
    有一种努力叫“凌晨四点”
    编程思想
    小记
    团队精神与集体主义
    变量起名
    软件项目估量方法
    戏说QQ
    压力说
    AngularJS指令基础(一)
    Leetcode 1021. Best Sightseeing Pair
  • 原文地址:https://www.cnblogs.com/zqzdong/p/6438973.html
Copyright © 2011-2022 走看看