当前位置:网站首页>02-taildir source
02-taildir source
2022-07-02 06:36:00 【lucky乐琪】
------------------------------------taildir source ------------------------------------
1、内容查询
====================================
[root@singlelucky flume]# head -10000 prolog.log>tail01/prologhead10000.log
[root@singlelucky flume]# ls tail01
prologhead10000.log
[root@singlelucky flume]# wc tail01/prologhead10000.log
10000 50000 1688953 tail01/prologhead10000.log
行数 单词数 大小
====================================
2、创建cnf
vim test_taildir_hffs.cnf
3、配置信息
# 组件说明
a1.sources = s1
a1.channels = c1
a1.sinks = k1
# 初始化数据源
a1.sources.s1.type = taildir
a1.sources.s1.filegroups = f1 f2
a1.sources.s1.filegroups.f1 = /root/data/flume/tail01/prolog.*\\.log
a1.sources.s1.filegroups.f2 = /root/data/flume/tail02/prolog.*\\.log
a1.sources.s1.positionFile = /opt/software/flume190/data/taildir/taildir_position.conf
# 初始化通道
a1.channels.c1.type = file
a1.channels.c1.checkpointDir = /opt/software/flume190/mydata/checkpoint
a1.channels.c1.dataDirs = /opt/software/flume190/mydata/data
a1.channels.c1.capacity = 10000
a1.channels.c1.transactionCapacity = 1000
# 初始化数据槽
a1.sinks.k1.type = hdfs
a1.sinks.k1.hdfs.path = hdfs://192.168.19.130:9820/flume/events/tailevent/%Y-%m-%d/%H
a1.sinks.k1.hdfs.round = true # 时间舍弃
a1.sinks.k1.hdfs.roundValue = 10
a1.sinks.k1.hdfs.roundUnit = minute
a1.sinks.k1.hdfs.filePrefix = log_%Y%m%d_%H
a1.sinks.k1.hdfs.fileSuffix = .log
a1.sinks.k1.hdfs.useLocalTimeStamp = true
a1.sinks.k1.hdfs.writeFormat = Text
a1.sinks.k1.hdfs.rollCount = 0
a1.sinks.k1.hdfs.rollSize = 134217728
a1.sinks.k1.hdfs.bacthSize = 1000
a1.sinks.k1.hdfs.threadsPoolSize = 4
a1.sinks.k1.hdfs.idleTimeout = 0
a1.sinks.k1.hdfs.minBlockReplicas = 1
# 关联组件
a1.sources.s1.channels = c1
a1.sinks.k1.channel = c1
4、启动
flume-ng agent -n a1 -c conf/ -f flume-conf-files/test_taildir_hffs.cnf -Dflume.root.logger=INFO,console
边栏推荐
- UE4夜间打光笔记
- Blender摄像机环绕运动、动画渲染、视频合成
- 滲透測試的介紹和防範
- [jetbrain rider] an exception occurred in the construction project: the imported project "d:\visualstudio2017\ide\msbuild\15.0\bin\roslyn\microsoft.csh" was not found
- 2021-10-04
- UE4 night lighting notes
- Introduction and prevention of penetration test
- 【虚幻】自动门蓝图笔记
- 2021-10-02
- 【避坑指南】使用UGUI遇到的坑:Text组件无法首行缩进两格
猜你喜欢
Basic notes of illusory AI blueprint (10000 words)
【虚幻】武器插槽:拾取武器
2.14 is it Valentine's day or Valentine's day when the mainstream market continues to fluctuate and wait for changes?
Skywalking theory and Practice
Illusion -- Animation blueprint, state machine production, character walking, running and jumping action
Eslint reports an error
Determine whether there are duplicate elements in the array
虚幻材质编辑器基础——如何连接一个最基本的材质
How to achieve the top progress bar effect in background management projects
Ctrip starts mixed office. How can small and medium-sized enterprises achieve mixed office?
随机推荐
Illusion -- Animation blueprint, state machine production, character walking, running and jumping action
ERROR 1118 (42000): Row size too large (> 8126)
[ue5] two implementation methods of AI random roaming blueprint (role blueprint and behavior tree)
Commutateur Multi - lentilles Blender
What wires are suitable for wiring on bread board?
Blender stone carving
Project practice, redis cluster technology learning (VII)
Bookmark collection management software suspension reading and data migration between knowledge base and browser bookmarks
Project practice, redis cluster technology learning (VIII)
Blender volume fog
Project practice, redis cluster technology learning (IX)
Blender摄像机环绕运动、动画渲染、视频合成
Introduction and Principle notes of UE4 material
07数据导入Sqoop
[Yu Yue education] University Physics (Electromagnetics) reference materials of Taizhou College of science and technology, Nanjing University of Technology
2021-09-12
Metaclass type and using metaclass to implement model class ORM
[tutorial] how to make the Helpviewer help document of VisualStudio run independently
Ctrip starts mixed office. How can small and medium-sized enterprises achieve mixed office?
2021-10-02