当前位置:网站首页>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
边栏推荐
- Unreal material editor foundation - how to connect a basic material
- Excuse me, is it cost-effective to insure love life patron saint 2.0 increased lifelong life insurance? What are the advantages of this product?
- Large neural networks may be beginning to realize: the chief scientist of openai leads to controversy, and everyone quarrels
- Spatial interpretation | comprehensive analysis of spatial structure of primary liver cancer
- Commutateur Multi - lentilles Blender
- ue虛幻引擎程序化植物生成器設置——如何快速生成大片森林
- Post disaster reconstruction -- Floyd thought
- [MySQL] an exception occurs when connecting to MySQL: connection must be valid and open
- Pytest learning --base
- Ue5 - ai Pursuit (Blueprint, Behavior tree)
猜你喜欢

Blender多鏡頭(多機比特)切換
![[pit avoidance guide] pit encountered using ugui: the text component cannot indent the first line by two spaces](/img/6f/e5a30dae824ccb22d1157818be58be.png)
[pit avoidance guide] pit encountered using ugui: the text component cannot indent the first line by two spaces
![[Fantasy 4] the transformation from U3D to UE4](/img/bb/665eba3c8cd774c94fe14f169121da.png)
[Fantasy 4] the transformation from U3D to UE4

Sum the two numbers to find the target value

2021-10-04

Blender石头雕刻

Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer

【虚幻】自动门蓝图笔记

Application of rxjs operator withlatestfrom in Spartacus UI of SAP e-commerce cloud

Considerations for Apache deploying static web page projects
随机推荐
stm32和电机开发(上位系统)
Tee command usage example
Bookmark collection management software suspension reading and data migration between knowledge base and browser bookmarks
2021-10-04
[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
[tutorial] how to make the Helpviewer help document of VisualStudio run independently
MySQL -- time zone / connector / driver type
【教程】如何让VisualStudio的HelpViewer帮助文档独立运行
UE illusory engine programmed plant generator setup -- how to quickly generate large forests
Basic usage of mock server
[leetcode] sword finger offer 53 - I. find the number I in the sorted array
pytest--之测试报告allure配置
SAP Spartacus express checkout design
Project practice, redis cluster technology learning (IX)
[Lua] summary of common knowledge points (including common interview sites)
Post disaster reconstruction -- Floyd thought
Blender多鏡頭(多機比特)切換
虚幻AI蓝图基础笔记(万字整理)
【虚幻4】UMG组件的简介与使用(更新中...)
webUI自动化学习