• flume1.5


    写入hdfs

    a1.channels.c1.type = memory

    # Define an Avro source called r1 on a1 and tell it
    # to bind to 0.0.0.0:41414. Connect it to channel c1.
    a1.sources.r1.channels = c1
    a1.sources.r1.type = avro
    a1.sources.r1.bind = 0.0.0.0
    a1.sources.r1.port = 41414
    a1.sinks.k1.type = hdfs
    a1.sinks.k1.channel = c1
    a1.sinks.k1.hdfs.path = hdfs://192.168.0.200:9000/user/hadoop/input/web
    a1.sinks.k1.hdfs.filePrefix = access-%Y-%m-%d
    a1.sinks.k1.hdfs.fileSuffix = .log
    a1.sinks.k1.hdfs.useLocalTimeStamp = true
    a1.sinks.k1.hdfs.fileType = DataStream
    a1.sinks.k1.hdfs.writeFormat = Text
    a1.sinks.k1.hdfs.rollSize = 0
    a1.sinks.k1.hdfs.rollInterval= 0
    a1.sinks.k1.hdfs.rollCount = 0
    #超时之后不活跃的文件关
    a1.sinks.k1.hdfs.idleTimeout = 0

    #
    # Finally, now that we've defined all of our components, tell
    # a1 which ones we want to activate.
    a1.channels = c1
    a1.sources = r1
    a1.sinks = k1

     bin/flume-ng  agent -c conf/ -f conf/server.conf -n a1 -Dflume.root.logger=DEBUG,console >my.log  2>&1 &

  • 相关阅读:
    bzoj1027 状压dp
    CodeForces755F 贪心 + 多重背包二进制优化
    CodeForces632E 神奇的多重背包
    POJ3662 SPFA//二分 + 双端队列最短路
    bzoj1233 单调队列优化dp
    POJ3417 LCA+树dp
    Network
    树网的核/[SDOI2011]消防
    [APIO2010]巡逻
    核心城市
  • 原文地址:https://www.cnblogs.com/DDSys/p/4032294.html
Copyright © 2020-2023  润新知