当前位置:网站首页>01-spooldir
01-spooldir
2022-07-02 06:36:00 【lucky乐琪】
-------------------------------------- spooldir -----------------------------------------
1、创建cnf
vim flume_spooldir_file_hdfs.cnf
2、配置信息
# 组件说明
a1.sources = s1
a1.channels = c1
a1.sinks = k1
# 初始化数据源
a1.sources.s1.type = spooldir
a1.sources.s1.spoolDir = /root/data/flume
a1.sources.s1.ignorePattern = ^(.)*\\.bak$
a1.sources.s1.fileSuffix = .bak
# 初始化通道
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 = 100000
a1.channels.c1.transactionCapacity = 10000
# 初始化数据槽
a1.sinks.k1.type = hdfs
a1.sinks.k1.hdfs.path = hdfs://192.168.19.130:9820/flume/events/fakeorder/%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
3、启动
flume-ng agent -n a1 -c conf/ -f flume-conf-files/flume_spooldir_file_hdfs.cnf -Dflume.root.logger=INFO,console
边栏推荐
- Junit5 supports suite methods
- Project practice, redis cluster technology learning (6)
- [ue5] two implementation methods of AI random roaming blueprint (role blueprint and behavior tree)
- This article takes you to learn in detail what is fiber to home FTTH
- Postman -- use
- Alibaba cloud SLS log service
- 【虚幻】过场动画笔记
- Project practice, redis cluster technology learning (VII)
- Blender ocean production
- 2021-10-02
猜你喜欢

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

Alibaba cloud ack introduction

Notes de base sur les plans illusoires d'IA (triés en 10 000 mots)

Configuration programmée du générateur de plantes du moteur illusoire UE - - Comment générer rapidement une grande forêt

Blender体积雾

Allure -- common configuration items

Webui automated learning

Post disaster reconstruction -- Floyd thought

pytest--之测试报告allure配置

Feature (5): how to organize information
随机推荐
2021-09-12
[unity3d] nested use layout group to make scroll view with dynamic sub object height
Blender ocean production
UE illusory engine programmed plant generator setup -- how to quickly generate large forests
[ue5] animation redirection: how to import magic tower characters into the game
[unity3d] production progress bar - make image have the functions of filled and sliced at the same time
【避坑指南】使用UGUI遇到的坑:Text组件无法首行缩进两格
Pytest-- test report allure configuration
Project practice, redis cluster technology learning (6)
[unreal] animation notes of the scene
ue虚幻引擎程序化植物生成器设置——如何快速生成大片森林
Alibaba cloud SMS service
[200 Shengxin literatures] 95 multiomics exploration TNBC
网络通信学习
2021-10-04
Following nym, the new project Galaxy token announced by coinlist is gal
合并有序数列
UE5——AI追逐(藍圖、行為樹)
Sil/pil test of matlab code generation
Junit5 supports suite methods