当前位置:网站首页>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
边栏推荐
- 虚幻——动画蓝图、状态机制作人物走跑跳动作
- Postman -- use
- Introduction and prevention of penetration test
- UE5——AI追逐(藍圖、行為樹)
- [leetcode] sword finger offer 53 - I. find the number I in the sorted array
- Matlab generates DSP program -- official routine learning (6)
- 【虚幻4】从U3D到UE4的转型之路
- Brief analysis of edgedb architecture
- Blender海洋制作
- ERROR 1118 (42000): Row size too large (> 8126)
猜你喜欢
Junit5 supports suite methods
MySQL index
2021-10-02
Leetcode -- the nearest common ancestor of 236 binary tree
Blender摄像机环绕运动、动画渲染、视频合成
[ue5] two implementation methods of AI random roaming blueprint (role blueprint and behavior tree)
Blender多镜头(多机位)切换
【虚幻4】UMG组件的简介与使用(更新中...)
Allure -- common configuration items
Large neural networks may be beginning to realize: the chief scientist of openai leads to controversy, and everyone quarrels
随机推荐
Blender多鏡頭(多機比特)切換
Blender volume fog
Vscode auto format
Sil/pil test of matlab code generation
Brief analysis of edgedb architecture
ERROR 1118 (42000): Row size too large (> 8126)
Eslint reports an error
Spatial interpretation | comprehensive analysis of spatial structure of primary liver cancer
Ue5 - AI pursuit (blueprint, behavior tree)
Post disaster reconstruction -- Floyd thought
Project practice, redis cluster technology learning (VII)
Ue5 - ai Pursuit (Blueprint, Behavior tree)
Metaclass type and using metaclass to implement model class ORM
Nonlinear optimization: establishment of slam model
Sum the two numbers to find the target value
Pytest learning --base
虛幻AI藍圖基礎筆記(萬字整理)
Pytest-- test report allure configuration
Alibaba cloud Prometheus monitoring service
Remember the use of add method once