当前位置:网站首页>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
边栏推荐
- Remember a simple Oracle offline data migration to tidb process
- Determine whether there are duplicate elements in the array
- 2021-10-04
- Blender model import UE, collision settings
- 【虚幻】武器插槽:拾取武器
- It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something
- What is the relationship between realizing page watermarking and mutationobserver?
- Operator exercises
- 【Lua】常见知识点汇总(包含常见面试考点)
- Project practice, redis cluster technology learning (IX)
猜你喜欢

Ue5 - AI pursuit (blueprint, behavior tree)

pytest学习--base

Tee command usage example

sqoop创建job出现的一系列问题解决方法

Notes de base sur les plans illusoires d'IA (triés en 10 000 mots)

Aiphacode is not a substitute for programmers, but a tool for developers

Allure -- common configuration items

Blender摄像机环绕运动、动画渲染、视频合成

07 data import sqoop

stm32和电机开发(上位系统)
随机推荐
Blender海洋制作
stm32和电机开发(上位系统)
【JetBrain Rider】构建项目出现异常:未找到导入的项目“D:\VisualStudio2017\IDE\MSBuild\15.0\Bin\Roslyn\Microsoft.CSh
Basic notes of illusory AI blueprint (10000 words)
Pytest learning --base
2021-10-02
Zlib download and use
What is the relationship between realizing page watermarking and mutationobserver?
allure--常用配置项
[ue5] blueprint making simple mine tutorial
Large neural networks may be beginning to realize: the chief scientist of openai leads to controversy, and everyone quarrels
07 data import sqoop
2021-10-04
Metaclass type and using metaclass to implement model class ORM
[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
Considerations for Apache deploying static web page projects
[ue5] two implementation methods of AI random roaming blueprint (role blueprint and behavior tree)
[MySQL] an exception occurs when connecting to MySQL: connection must be valid and open
flume 190 INSTALL
快速做出原型