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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Flume 整合 Kafka_flume 到kafka 配置【轉】Kafka
- Flume:spark-project專案的flume配置SparkProject
- Flume 配置環境變數變數
- Linux環境Flume安裝配置及使用Linux
- flume
- Springcloud及Git線上配置詳解SpringGCCloudGit
- Express搭建線上便利貼——Webpack配置ExpressWeb
- 如何獲取Flume連線HDFS所需要的包
- Flume+Spark+Hive+Spark SQL離線分析系統SparkHiveSQL
- Flume概述
- flume + elasticsearchElasticsearch
- 強大!Nginx 配置線上一鍵生成“神器”Nginx
- 生產環境常用配置和上線清單
- 【配置上線】Oracle靜默建庫 for 11gOracle
- konfig:採用ConfigMap實現線上配置熱更新
- Xcode配置測試環境和線上環境XCode
- Flume消費內外網分流配置的Kafka時遇到的坑Kafka
- spark 與flume 1.6.0Spark
- 原創|強大!Nginx 配置線上一鍵生成“神器”Nginx
- Flume - [02] Spooling Directory Source
- Flume面試題整理面試題
- Flume基礎學習
- kafka+flume的整合Kafka
- Flume監控之Ganglia
- Apache Flume 入門教程Apache
- Flume採集到HDFS
- flume的安裝部署
- 因配置失誤 超1.3萬iSCSI儲存叢集已線上上暴露
- 全鏈路灰度新功能:MSE 上線配置標籤推送
- 【配置上線】Linux克隆安裝Oracle資料庫軟體LinuxOracle資料庫
- Vue專案上線環境部署,專案優化策略,生成打包報告,及上線相關配置Vue優化
- 線上問題總結-獲取不到連線池(logback 配置+程式碼問題)
- RHEL7/CentOS7線上和離線安裝GitLab配置使用實踐CentOSGitlab
- 針對flume中扇出複用(源exec)原始碼修改,並編譯flume原始碼編譯
- FLume相關面試題面試題
- 大資料之Flume(二)大資料
- 日誌採集框架Flume框架
- flume 1.8.0 開發基礎