当前位置:网站首页>02-taildir source
02-taildir source
2022-07-02 10:31:00 【Lucky lucky】
------------------------------------taildir source ------------------------------------
1、 Content query
====================================
[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
Row number Number of words size
====================================
2、 establish cnf
vim test_taildir_hffs.cnf
3、 Configuration information
# Component description
a1.sources = s1
a1.channels = c1
a1.sinks = k1
# Initialize the data source
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
# Initialize channel
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
# Initialize data slot
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 # Time abandonment
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
# Associated components
a1.sources.s1.channels = c1
a1.sinks.k1.channel = c1
4、 start-up
flume-ng agent -n a1 -c conf/ -f flume-conf-files/test_taildir_hffs.cnf -Dflume.root.logger=INFO,console
边栏推荐
- 两数之和,求目标值
- [unity3d] nested use layout group to make scroll view with dynamic sub object height
- Blender volume fog
- 07数据导入Sqoop
- Ue5 - ai Pursuit (Blueprint, Behavior tree)
- [leetcode] sword finger offer 53 - I. find the number I in the sorted array
- Brief analysis of edgedb architecture
- 快速做出原型
- 【leetcode】33. Search rotation sort array
- [ue5] blueprint making simple mine tutorial
猜你喜欢
虛幻AI藍圖基礎筆記(萬字整理)
Test -- Summary of interview questions
使用Windbg静态分析dump文件(实战经验总结)
pytest--之测试报告allure配置
Blender volume fog
07 data import sqoop
07数据导入Sqoop
【避坑指南】使用UGUI遇到的坑:Text组件无法首行缩进两格
测试--面试题总结
A model can do two things: image annotation and image reading Q & A. VQA accuracy is close to human level | demo can be played
随机推荐
Metaclass type and using metaclass to implement model class ORM
UE5——AI追逐(藍圖、行為樹)
2021-10-04
Project practice, redis cluster technology learning (16)
Network communication learning
sqoop的表的导入
Vscode set JSON file to format automatically after saving
【虚幻4】UMG组件的简介与使用(更新中...)
【Unity3D】制作进度条——让Image同时具有Filled和Sliced的功能
【JetBrain Rider】构建项目出现异常:未找到导入的项目“D:\VisualStudio2017\IDE\MSBuild\15.0\Bin\Roslyn\Microsoft.CSh
2021-09-12
合并有序数列
Database -- acid of transaction -- introduction / explanation
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
【虚幻】武器插槽:拾取武器
How much is it to develop a system software in Beijing, and what funds are needed to develop the software
UE5——AI追逐(蓝图、行为树)
VLAN experiment
[IDL] Research
网络通信学习