当前位置:网站首页>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
边栏推荐
- pytest框架实现前后置
- 【Unity3D】嵌套使用Layout Group制作拥有动态子物体高度的Scroll View
- 【JetBrain Rider】构建项目出现异常:未找到导入的项目“D:\VisualStudio2017\IDE\MSBuild\15.0\Bin\Roslyn\Microsoft.CSh
- The primary market project galaxy will conduct public offering on coinlist on February 17
- 滲透測試的介紹和防範
- Project practice, redis cluster technology learning (12)
- Following nym, the new project Galaxy token announced by coinlist is gal
- Pytest framework implements pre post
- Skywalking theory and Practice
- Matlab generates DSP program -- official routine learning (6)
猜你喜欢

【JetBrain Rider】构建项目出现异常:未找到导入的项目“D:\VisualStudio2017\IDE\MSBuild\15.0\Bin\Roslyn\Microsoft.CSh

How to judge the quality of primary market projects when the market is depressed?

Blender model import UE, collision settings

Blender海洋制作

Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer

ICLR 2022: how does AI recognize "things I haven't seen"?

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

AutoCAD - layer Linetype

MPLS experiment

ue4材质的入门和原理笔记
随机推荐
UE5——AI追逐(藍圖、行為樹)
Message mechanism -- getting to know messages and message queues for the first time
Delivery mode design of Spartacus UI of SAP e-commerce cloud
Feature (5): how to organize information
Webui automated learning
2021-09-12
Blender ocean production
[illusory] automatic door blueprint notes
Test -- Summary of interview questions
【虚幻】自动门蓝图笔记
Blender多鏡頭(多機比特)切換
pytest学习--base
[visual studio] every time you open a script of unity3d, a new vs2017 will be automatically reopened
How to handle error logic gracefully
How to judge the quality of primary market projects when the market is depressed?
Metaclass type and using metaclass to implement model class ORM
[ue5] two implementation methods of AI random roaming blueprint (role blueprint and behavior tree)
Database -- acid of transaction -- introduction / explanation
【JetBrain Rider】构建项目出现异常:未找到导入的项目“D:\VisualStudio2017\IDE\MSBuild\15.0\Bin\Roslyn\Microsoft.CSh
Eslint reports an error