当前位置:网站首页>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
边栏推荐
- stm32和电机开发(上位系统)
- Configuration programmée du générateur de plantes du moteur illusoire UE - - Comment générer rapidement une grande forêt
- 【leetcode】33. Search rotation sort array
- [tutorial] how to make the Helpviewer help document of VisualStudio run independently
- This article takes you to learn in detail what is fiber to home FTTH
- Project practice, redis cluster technology learning (VIII)
- 2021-10-04
- ICLR 2022: how does AI recognize "things I haven't seen"?
- pytest框架实现前后置
- 2021-10-02
猜你喜欢
Remember the use of add method once
Blender multi lens (multi stand) switching
pytest学习--base
Post disaster reconstruction -- Floyd thought
【Visual Studio】每次打开一个Unity3D的脚本,都会自动重新打开一个新的VS2017
ue4材质的入门和原理笔记
This article takes you to learn in detail what is fiber to home FTTH
Brief analysis of edgedb architecture
[unreal] key to open the door blueprint notes
【虚幻】按键开门蓝图笔记
随机推荐
pytest--之测试报告allure配置
Basic notes of illusory AI blueprint (10000 words)
ICLR 2022: how does AI recognize "things I haven't seen"?
01安装虚拟机
2021-10-04
Applet development summary
pytest学习--base
[jetbrain rider] an exception occurred in the construction project: the imported project "d:\visualstudio2017\ide\msbuild\15.0\bin\roslyn\microsoft.csh" was not found
Project practice, redis cluster technology learning (10)
Tee command usage example
ue4材质的入门和原理笔记
[ue5] two implementation methods of AI random roaming blueprint (role blueprint and behavior tree)
Post disaster reconstruction -- Floyd thought
Notes de base sur les plans illusoires d'IA (triés en 10 000 mots)
The primary market project galaxy will conduct public offering on coinlist on February 17
Deep understanding of redis cache avalanche / cache breakdown / cache penetration
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
Project practice, redis cluster technology learning (13)
Pytest-- test report allure configuration
Allure -- common configuration items