• 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
    

      

  • 相关阅读:
    敏捷之旅--携程境外租车团队敏捷实践
    (一)LoadRunner安装
    性能测试,相关术语解析
    Newtonsoft.Json
    主流浏览器基于哪些内核?
    火狐浏览器与谷歌浏览器区别在哪里?
    带宽计算-大B与小b的区别
    loadrunner11录制不成功解决方法
    代码中的事务约束
    IOC框架Ninject实践总结
  • 原文地址:https://www.cnblogs.com/zqzdong/p/6438973.html
Copyright © 2020-2023  润新知