当前位置:网站首页>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
- Introduction and prevention of penetration test
- 【leetcode】33. Search rotation sort array
- Pytest learning --base
- Sum the two numbers to find the target value
- Remember a simple Oracle offline data migration to tidb process
- 【虚幻】武器插槽:拾取武器
- [unity3d] cannot correctly obtain the attribute value of recttransform, resulting in calculation error
- 虚幻AI蓝图基础笔记(万字整理)
- [ue5] animation redirection: how to import magic tower characters into the game
猜你喜欢
Alibaba cloud Prometheus monitoring service
Remember the use of add method once
JS reduce accumulator
[ue5] animation redirection: how to import magic tower characters into the game
Blender volume fog
2837xd code generation module learning (1) -- GPIO module
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
Tee command usage example
判断数组中是否存在重复元素
MPLS experiment
随机推荐
2021-09-12
JS reduce accumulator
Alibaba cloud ack introduction
滲透測試的介紹和防範
Basic usage of mock server
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
【MySQL】连接MySQL时出现异常:Connection must be valid and open
[unreal] animation notes of the scene
[Yu Yue education] University Physics (Electromagnetics) reference materials of Taizhou College of science and technology, Nanjing University of Technology
Metaclass type and using metaclass to implement model class ORM
虚幻材质编辑器基础——如何连接一个最基本的材质
2021-10-02
【虚幻4】从U3D到UE4的转型之路
Understand the composition of building energy-saving system
Pytest-- test report allure configuration
Junit5 supports suite methods
Introduction to go language
Brief analysis of edgedb architecture
Operator exercises