当前位置:网站首页>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】无法正确获取RectTransform的属性值导致计算出错
- Brief analysis of edgedb architecture
- 【UE5】AI随机漫游蓝图两种实现方法(角色蓝图、行为树)
- [unreal] animation notes of the scene
- Matlab generates DSP program -- official routine learning (6)
- Pytest-- test report allure configuration
- Project practice, redis cluster technology learning (16)
- [illusory] automatic door blueprint notes
- Merge ordered sequence
- 【Visual Studio】每次打开一个Unity3D的脚本,都会自动重新打开一个新的VS2017
猜你喜欢

Blender camera surround motion, animation rendering, video synthesis
![[MySQL] an exception occurs when connecting to MySQL: connection must be valid and open](/img/09/a75ce6742d787c640b8066e0e8e694.png)
[MySQL] an exception occurs when connecting to MySQL: connection must be valid and open

虚幻材质编辑器基础——如何连接一个最基本的材质

Introduction and Principle notes of UE4 material

Ue5 - AI pursuit (blueprint, behavior tree)

Blender多镜头(多机位)切换

Alibaba cloud ack introduction

两数之和,求目标值

2021-10-02

This article takes you to learn in detail what is fiber to home FTTH
随机推荐
[illusory] weapon slot: pick up weapons
Blender camera surround motion, animation rendering, video synthesis
Blender multi lens (multi stand) switching
【虚幻】按键开门蓝图笔记
Project practice, redis cluster technology learning (16)
Blender模型导入ue、碰撞设置
07数据导入Sqoop
【MySQL】连接MySQL时出现异常:Connection must be valid and open
Basic usage of mock server
Project practice, redis cluster technology learning (6)
2.14 is it Valentine's day or Valentine's day when the mainstream market continues to fluctuate and wait for changes?
ERROR 1118 (42000): Row size too large (> 8126)
VLAN experiment
It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something
Test -- Summary of interview questions
Network real-time video streaming based on OpenCV
ue4材质的入门和原理笔记
Project practice, redis cluster technology learning (12)
虚幻AI蓝图基础笔记(万字整理)
Blender model import UE, collision settings