flume线上配置

hdfs_agent.sources = r1

hdfs_agent.sinks = k1

hdfs_agent.channels = c1


# Describe/configure the source

hdfs_agent.sources.r1.type = org.apache.flume.source.kafka.KafkaSource

#hdfs_agent.sources.r1.zookeeperConnect = 10.69.40.17:2181,10.69.40.12:2181,10.69.40.7:2181,10.69.40.11:2181,10.69.40.16:2181

#hdfs_agent.sources.r1.groupId = online_kafka_to_hdfs_gk_groupid_000001

#hdfs_agent.sources.r1.topic = IRT_Dev_Status_STD

hdfs_agent.sources.r1.kafka.bootstrap.servers = 10.69.40.10:9092,10.69.40.13:9092,10.69.40.14:9092,10.69.40.15:9092

hdfs_agent.sources.r1.kafka.consumer.group.id = online_kafka_to_hdfs_gk_groupid_000001

hdfs_agent.sources.r1.kafka.topics = workcondition_info_flume

hdfs_agent.sources.r1.batchSize = 2000

hdfs_agent.sources.r1.interceptors = i1

hdfs_agent.sources.r1.interceptors.i1.type = host

# Describe the sink

hdfs_agent.sinks.k1.type = hdfs

hdfs_agent.sinks.k1.hdfs.path = hdfs://rootcloud/ods/%Y%m%d/%H

hdfs_agent.sinks.k1.hdfs.filePrefix = log-%{host}

hdfs_agent.sinks.k1.hdfs.fileType = DataStream

hdfs_agent.sinks.k1.hdfs.rollInterval = 3600

hdfs_agent.sinks.k1.hdfs.rollSize = 104857600

hdfs_agent.sinks.k1.hdfs.rollCount = 0

hdfs_agent.sinks.k1.hdfs.batchSize = 2000

hdfs_agent.sinks.k1.hdfs.callTimeout = 300000

hdfs_agent.sinks.k1.hdfs.idleTimeout = 600


# Use a channel which buffers events in memory

hdfs_agent.channels.c1.type = memory

hdfs_agent.channels.c1.capacity = 2000000

hdfs_agent.channels.c1.transactionCapacity = 3000


# Bind the source and sink to the channel

hdfs_agent.sources.r1.channels = c1

hdfs_agent.sinks.k1.channel = c1


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31347383/viewspace-2168986/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/31347383/viewspace-2168986/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值