Flume 收集Nginx日志到Hdfs Tail-to-hdfs sink
来源:互联网 发布:淘宝网服饰女毛衣 编辑:程序博客网 时间:2024/05/19 13:57
转载URL:
http://blog.csdn.net/luyee2010/article/details/22159445
nginx,access.log日志约8000条/s,每100w条数据约253M,需要2min
agent1.sources = source1agent1.sinks = sink1agent1.channels = channel1# Describe/configure spooldir source1#agent1.sources.source1.type = spooldir#agent1.sources.source1.spoolDir = /var/log/apache/flumeSpool1#agent1.sources.source1.fileHeader = true# Describe/configure tail -F source1agent1.sources.source1.type = exec agent1.sources.source1.command = tail -F /tmp/log.logagent1.sources.source1.channels = channel1# Describe/configure nc source1#agent1.sources.source1.type = netcat#agent1.sources.source1.bind = localhost#agent1.sources.source1.port = 44444#configure host for sourceagent1.sources.source1.interceptors = i1agent1.sources.source1.interceptors.i1.type = hostagent1.sources.source1.interceptors.i1.hostHeader = hostname# Describe sink1#agent1.sinks.sink1.type = loggeragent1.sinks.sink1.type = hdfs#a1.sinks.k1.channel = c1#agent1.sinks.sink1.hdfs.path =hdfs://xxx:9000/tmp/tail/%y-%m-%d/%H%M%Sagent1.sinks.sink1.hdfs.path =hdfs://xxx:9000/tmp/tail/%y-%m-%d/%Hagent1.sinks.sink1.hdfs.filePrefix = %{hostname}/events-agent1.sinks.sink1.hdfs.maxOpenFiles = 5000 agent1.sinks.sink1.hdfs.batchSize= 500agent1.sinks.sink1.hdfs.fileType = DataStreamagent1.sinks.sink1.hdfs.writeFormat =Textagent1.sinks.sink1.hdfs.rollSize = 0agent1.sinks.sink1.hdfs.rollCount = 1000000agent1.sinks.sink1.hdfs.rollInterval = 600#agent1.sinks.sink1.hdfs.round = true#agent1.sinks.sink1.hdfs.roundValue = 10#agent1.sinks.sink1.hdfs.roundUnit = minuteagent1.sinks.sink1.hdfs.useLocalTimeStamp = true# Use a channel which buffers events in memoryagent1.channels.channel1.type = memoryagent1.channels.channel1.keep-alive = 120agent1.channels.channel1.capacity = 500000agent1.channels.channel1.transactionCapacity = 600# Bind the source and sink to the channelagent1.sources.source1.channels = channel1agent1.sinks.sink1.channel = channel1
0 0
- Flume 收集Nginx日志到Hdfs Tail-to-hdfs sink
- Flume 收集Nginx日志到Hdfs Tail-to-hdfs sink
- flume 收集日志到HDFS
- Flume 日志收集、使用Flume收集日志到HDFS
- Flume 收集Nginx日志 tail-to-avro avro-to-file
- Flume 收集Nginx日志 tail-to-avro avro-to-file
- flume sink hdfs异常
- Flume之——采集Nginx日志到HDFS
- Flume中的HDFS Sink配置
- Flume<HDFS Sink参数配置>
- Flume HDFS sink 配置手册
- Flume中的HDFS Sink配置
- Flume-NG + HDFS + HIVE 日志收集分析
- Flume-NG + HDFS + HIVE 日志收集分析
- Flume NG flume-hdfs-sink 源代码分析
- flume的导日志数据到hdfs
- 理解flume hdfs sink round 和roll
- Flume HDFS Sink使用及源码分析
- 方便的格式化OutputDebugString输出函数
- iOS APP转移开发者账号
- 学习笔记之SQl语句-插入对象的值
- Linux(CentOS) Wget安装配置用户Oracle JDK
- HDU 5412 CRB and Queries【整体二分+树状数组】
- Flume 收集Nginx日志到Hdfs Tail-to-hdfs sink
- Codeforces Round #315 (Div. 1) C. New Language(2-sat+贪心)(好题)
- android 如何设置图片颜色的透明度
- Cornerstone log 获取不到,超时,解决办法
- 机房收费系统优化之控件随窗体改变而相应比例改变
- php抓取远程数据排序
- android 优秀的几个框架
- cocos2d-js导弹跟踪算法(一边追着目标移动一边旋转角度)
- 算法、技术及其他