当前位置:网站首页>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
边栏推荐
- How much is it to develop a system software in Beijing, and what funds are needed to develop the software
- Applet development summary
- Sum the two numbers to find the target value
- pytest--之测试报告allure配置
- MySQL index
- Blender camera surround motion, animation rendering, video synthesis
- Pycaret | a few lines of code to solve machine learning modeling
- Introduction et prévention des essais de pénétration
- [tutorial] how to make the Helpviewer help document of VisualStudio run independently
- 【Unity3D】嵌套使用Layout Group制作拥有动态子物体高度的Scroll View
猜你喜欢
The primary market project galaxy will conduct public offering on coinlist on February 17
Mock Server基本使用方法
Alibaba cloud SMS service
ue4材质的入门和原理笔记
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
ue虚幻引擎程序化植物生成器设置——如何快速生成大片森林
【虚幻】武器插槽:拾取武器
[illusory] automatic door blueprint notes
【UE5】AI随机漫游蓝图两种实现方法(角色蓝图、行为树)
Webui automated learning
随机推荐
【虚幻】过场动画笔记
07数据导入Sqoop
[unity3d] nested use layout group to make scroll view with dynamic sub object height
Matlab generates DSP program -- official routine learning (6)
Project practice, redis cluster technology learning (10)
2021-10-04
Translation d30 (with AC code POJ 28:sum number)
【教程】如何让VisualStudio的HelpViewer帮助文档独立运行
[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?
【Visual Studio】每次打开一个Unity3D的脚本,都会自动重新打开一个新的VS2017
Introduction to go language
【虚幻】按键开门蓝图笔记
Understand the composition of building energy-saving system
Blender体积雾
Postman--使用
【JetBrain Rider】构建项目出现异常:未找到导入的项目“D:\VisualStudio2017\IDE\MSBuild\15.0\Bin\Roslyn\Microsoft.CSh
Allure -- common configuration items
[unity3d] production progress bar - make image have the functions of filled and sliced at the same time
【UE5】蓝图制作简单地雷教程