当前位置:网站首页>flume 190 INSTALL
flume 190 INSTALL
2022-07-02 06:36:00 【lucky乐琪】
#1、解压和改名
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、配置
cd /opt/software/flume190/conf
mv flume-env.sh.template flume-env.sh
export JAVA_HOME=/opt/software/java/jdk180
#配置环境变量并激活
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的guava-xxx.jar和hadoop的版本是否一致
在flume190/lib下删除原来的guava
cp /opt/software/hadoop/hadoop313/share/hadoop/hdfs/lib/guava-27.0-jre.jar在这里插入代码片
#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
#启动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
#组件声明
a1.sources = s1
a1.channels = c1
a1.sinks = k1
#初始化数据源
a1.sources.s1.type = netcat
a1.sources.s1.bind = 192.168.19.130
a1.sources.s1.port = 6666
#初始化通道
a1.channels.c1.type = memory
a1.channels.c1.capacity = 100
a1.channels.c1.transacionCapacity = 10
#初始化数据槽
a1.sinks.k1.type = logger
#关联组件
a1.sources.s1.channels = c1
a1.sinks.k1.channel = c1
边栏推荐
- [tutorial] how to make the Helpviewer help document of VisualStudio run independently
- Network communication learning
- Translation d30 (with AC code POJ 28:sum number)
- Webui automated learning
- ue4材质的入门和原理笔记
- VLAN experiment
- A model can do two things: image annotation and image reading Q & A. VQA accuracy is close to human level | demo can be played
- Metaclass type and using metaclass to implement model class ORM
- Project practice, redis cluster technology learning (10)
- ICLR 2022: how does AI recognize "things I haven't seen"?
猜你喜欢
[unreal] animation notes of the scene
【Visual Studio】每次打开一个Unity3D的脚本,都会自动重新打开一个新的VS2017
【JetBrain Rider】构建项目出现异常:未找到导入的项目“D:\VisualStudio2017\IDE\MSBuild\15.0\Bin\Roslyn\Microsoft.CSh
【虚幻】武器插槽:拾取武器
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
What is the relationship between realizing page watermarking and mutationobserver?
webUI自动化学习
Bookmark collection management software suspension reading and data migration between knowledge base and browser bookmarks
Blender多鏡頭(多機比特)切換
【虚幻】自动门蓝图笔记
随机推荐
2021-09-12
Network communication learning
[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
判断数组中是否存在重复元素
2837xd code generation module learning (2) -- ADC, epwm module, timer0
Sum the two numbers to find the target value
Project practice, redis cluster technology learning (VIII)
【虚幻4】UMG组件的简介与使用(更新中...)
Webui automated learning
[unreal] animation notes of the scene
Blender camera surround motion, animation rendering, video synthesis
Illusion -- Animation blueprint, state machine production, character walking, running and jumping action
Blender石头雕刻
Remember the use of add method once
MPLS experiment
Zlib download and use
Network real-time video streaming based on OpenCV
Introduction to go language
[unity3d] production progress bar - make image have the functions of filled and sliced at the same time
Sil/pil test of matlab code generation