当前位置:网站首页>flume 190 INSTALL
flume 190 INSTALL
2022-07-02 10:31:00 【Lucky lucky】
#1、 Unzip and rename
tar -zxvf /opt/download/hadoop/apache-flume-1.9.0-bin.tar.gz -C /opt/software/
mv /opt/software/apache-flume-1.9.0-bin /opt/software/flume190
#2、 To configure
cd /opt/software/flume190/conf
mv flume-env.sh.template flume-env.sh
export JAVA_HOME=/opt/software/java/jdk180
# Configure environment variables and activate
vim /etc/profile.d/myenv.sh
#flume
# flume
export FLUME_HOME=/opt/software/flume190
export FLUME_CONF_DIR=$FLUME_HOME/conf
export FLUME_LOG_DIR=$FLUME_HOME/log
export PATH=$PATH:$FLUME_HOME/bin
source /etc/profile
##google Of guava-xxx.jar and hadoop Whether the version of is consistent
stay flume190/lib Delete the original guava
cp /opt/software/hadoop/hadoop313/share/hadoop/hdfs/lib/guava-27.0-jre.jar Insert a code chip here
#flume
Event
SOURCE => CHANNEL => SINK
NETCAT(iP+port) memory logger
SPOOLDIR(dir) file hdfs
TAILDIR(dir) kafka
yum -y install gcc
yum install -y nc
# start-up flume
flume-ng agent --name a1 --conf /opt/software/flume190/conf/ --conf-file /root/flume_job/logconf/flume01.cnf -Dflume.root.logger=INFO,console
[root@singlelucky ~]# nc -v 192.168.19.130 6666
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to 192.168.19.130:6666.
SOURCE:NETCAT,CHANNEL:MEMORT,SINK:LOGGER
#vim flume01.cnf
# Component declaration
a1.sources = s1
a1.channels = c1
a1.sinks = k1
# Initialize the data source
a1.sources.s1.type = netcat
a1.sources.s1.bind = 192.168.19.130
a1.sources.s1.port = 6666
# Initialize channel
a1.channels.c1.type = memory
a1.channels.c1.capacity = 100
a1.channels.c1.transacionCapacity = 10
# Initialize data slot
a1.sinks.k1.type = logger
# Associated components
a1.sources.s1.channels = c1
a1.sinks.k1.channel = c1
边栏推荐
- [Lua] summary of common knowledge points (including common interview sites)
- VLAN experiment
- 【虚幻】武器插槽:拾取武器
- UE5——AI追逐(蓝图、行为树)
- Pytest-- test report allure configuration
- Flink实时计算topN热榜
- [leetcode] sword finger offer 53 - I. find the number I in the sorted array
- How does {} prevent SQL injection? What is its underlying principle?
- Deep understanding of redis cache avalanche / cache breakdown / cache penetration
- ue虚幻引擎程序化植物生成器设置——如何快速生成大片森林
猜你喜欢
随机推荐
Flink实时计算topN热榜
[Yu Yue education] University Physics (Electromagnetics) reference materials of Taizhou College of science and technology, Nanjing University of Technology
This article takes you to learn in detail what is fiber to home FTTH
Allure -- common configuration items
2021-09-12
高考的意义是什么
Remember a simple Oracle offline data migration to tidb process
Database -- acid of transaction -- introduction / explanation
Blender石头雕刻
Network communication learning
[200 Shengxin literatures] 95 multiomics exploration TNBC
Deep understanding of redis cache avalanche / cache breakdown / cache penetration
【教程】如何让VisualStudio的HelpViewer帮助文档独立运行
[tutorial] how to make the Helpviewer help document of VisualStudio run independently
Remember the use of add method once
【虚幻】自动门蓝图笔记
stm32和电机开发(上位系统)
[pit avoidance guide] pit encountered using ugui: the text component cannot indent the first line by two spaces
pytest--之测试报告allure配置
2021-10-02









