当前位置:网站首页>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
边栏推荐
- 【Unity3D】制作进度条——让Image同时具有Filled和Sliced的功能
- 【避坑指南】Unity3D项目接入腾讯Bugly工具时遇到的坑
- 【虚幻4】UMG组件的简介与使用(更新中...)
- Aiphacode is not a substitute for programmers, but a tool for developers
- Merge ordered sequence
- [visual studio] every time you open a script of unity3d, a new vs2017 will be automatically reopened
- ue虛幻引擎程序化植物生成器設置——如何快速生成大片森林
- AutoCAD - layer Linetype
- [200 Shengxin literatures] 96 joint biomarkers of immune checkpoint inhibitor response in advanced solid tumors
- Ue5 - ai Pursuit (Blueprint, Behavior tree)
猜你喜欢

Pytest-- test report allure configuration

Commutateur Multi - lentilles Blender

2837xd code generation module learning (2) -- ADC, epwm module, timer0
Brief analysis of edgedb architecture

Remember the use of add method once

ue4材质的入门和原理笔记

Blender海洋制作

虚幻AI蓝图基础笔记(万字整理)

Eslint reports an error

Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
随机推荐
Skywalking theory and Practice
Network communication learning
[Yu Yue education] University Physics (Electromagnetics) reference materials of Taizhou College of science and technology, Nanjing University of Technology
Large neural networks may be beginning to realize: the chief scientist of openai leads to controversy, and everyone quarrels
Project practice, redis cluster technology learning (13)
Bookmark collection management software suspension reading and data migration between knowledge base and browser bookmarks
Project practice, redis cluster technology learning (6)
Blender多鏡頭(多機比特)切換
[ue5] two implementation methods of AI random roaming blueprint (role blueprint and behavior tree)
Summary of demand R & D process nodes and key outputs
2837xd code generation module learning (3) -- IIC, ECAN, SCI, watchdog, ECAP modules
Network real-time video streaming based on OpenCV
Project practice, redis cluster technology learning (12)
Application of rxjs operator withlatestfrom in Spartacus UI of SAP e-commerce cloud
Ctrip starts mixed office. How can small and medium-sized enterprises achieve mixed office?
Pycaret | a few lines of code to solve machine learning modeling
Post disaster reconstruction -- Floyd thought
Ue5 - AI pursuit (blueprint, behavior tree)
Introduction et prévention des essais de pénétration
Matlab generates DSP program -- official routine learning (6)