Flume实现日志文件夹数据加载到HDFS
来源:互联网 发布:芙莉西亚之虫惑魔淘宝 编辑:程序博客网 时间:2024/05/24 04:41
Flume是一种分布式,可靠和可用的服务,用于高效收集,聚合和移动大量日志数据。 它具有基于数据流的简单和可伸缩的架构。 它具有可靠性机制和故障切换和恢复机制的鲁棒性和容错能力。
vi corp_base_info.conf
a1.sources = r1
a1.sinks = k1
a1.channels = c1
# Describe/configure the source
a1.sources.r1.type = spooldir
a1.sources.r1.spoolDir=/home/flume/testdata/test
a1.sources.r1.includePattern=^AUEIC.C_CONS([0-9a-zA-Z]|[._-])*$
a1.sources.r1.ignorePattern=^.*COMPLETED$
a1.sources.r1.inputCharset=UTF-8
a1.sources.r1.pollDelay=300000 #5分针采集一次
加粗的属性1.7以上才有
#Use a channel which buffers events in memory
a1.channels=c1
a1.channels.c1.capacity=1000000
a1.channels.c1.transactionCapacity=1000000
a1.channels.c1.type=memory
#Describe the sink
a1.sinks=k1
a1.sinks.k1.channel=c1
a1.sinks.k1.hdfs.fileType=DataStream
a1.sinks.k1.hdfs.path=hdfs://mynameservice/apps/hive/warehouse/flume.db/corp_base_info/ymd=%Y%m%d
a1.sinks.k1.hdfs.rollCount=0
a1.sinks.k1.hdfs.rollInterval=0
a1.sinks.k1.hdfs.rollSize=10240000
a1.sinks.k1.hdfs.idleTimeout=60
a1.sinks.k1.hdfs.writeFormat=Text
a1.sinks.k1.type=hdfs
# Bind the source and sink to the channel
a1.sources.r1.channels = c1
a1.sinks.k1.channel = c1
- Flume实现日志文件夹数据加载到HDFS
- flume的导日志数据到hdfs
- flume 收集日志到HDFS
- flume将log4j日志数据写入到hdfs
- flume--03-flume读取web应用某个文件夹下日志到hdfs
- flume采集数据到hdfs
- flume 采集数据到hdfs
- flume学习(三):flume将log4j日志数据写入到hdfs
- flume学习(五):flume将log4j日志数据写入到hdfs
- flume学习(五):flume将log4j日志数据写入到hdfs
- flume学习(二):flume将log4j日志数据写入到hdfs
- flume学习(三):flume将log4j日志数据写入到hdfs
- Flume 日志收集、使用Flume收集日志到HDFS
- log4j+flume+HDFS实现日志存储
- log4j+flume+HDFS实现日志存储
- log4j+flume+HDFS实现日志存储
- Flume 收集Nginx日志到Hdfs Tail-to-hdfs sink
- Flume 收集Nginx日志到Hdfs Tail-to-hdfs sink
- 2017.10.23学习知识总结回顾及编写新网页
- 用C语言编写程序在屏幕上打印杨辉三角。(非递归)
- Nswoj每日一题:Magic Pen
- aar' is not a valid maven coordinate
- 从多方位考虑来选择合适的Linux服务器
- Flume实现日志文件夹数据加载到HDFS
- 几种简单的负载均衡算法及其Java代码实现
- ubuntu16.04+cuda8.0+cudnn6+opencv3.1 搭建caffe tensorflow
- 简单的javaScript和jQuery使用日记
- py2exe
- CSS 盒子模型
- 查看不同网络结构(22)---《深度学习》
- 657. Judge Route Circle
- Linux 内核 习题