In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to install Flume", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to install Flume" this article.
Download / decompress
[root@hadoop0 opt] # wget http://mirror.bit.edu.cn/apache/flume/1.6.0/apache-flume-1.6.0-bin.tar.gz
-- 1999-05-08 1914 02Rose 36muri-http://mirror.bit.edu.cn/apache/flume/1.6.0/apache-flume-1.6.0-bin.tar.gz
Resolving mirror.bit.edu.cn... 114.247.56.117
Connecting to mirror.bit.edu.cn | 114.247.56.117 |: 80. Connected.
HTTP request sent, awaiting response... 200 OK
Length: 52550402 (50m) [application/octet-stream]
Saving to: apache-flume-1.6.0-bin.tar.gz
52550402 621K/s in 1m 41s
1999-05-08 19:04:17 (507 KB/s)-apache-flume-1.6.0-bin.tar.gz saved [52550402 ash 52550402]
[root@hadoop0 opt] # tar-zxvf apache-flume-1.6.0-bin.tar.gz
[root@hadoop0 opt] # cd apache-flume-1.6.0-bin
[root@hadoop0 apache-flume-1.6.0-bin] #. / bin/flume-ng help
Usage:. / bin/flume-ng [options]...
Commands:
Help display this help text
Agent run a Flume agent
Avro-client run an avro Flume client
Version show Flume version info
Global options:
-- conf,-c use configs in directory
-- classpath,-C append to the classpath
-- dryrun,-d do not actually start Flume, just print the command
-- plugins-path colon-separated list of plugins.d directories. See the
Plugins.d section in the user guide for more details.
Default: $FLUME_HOME/plugins.d
-Dproperty=value sets a Java system property value
-Xproperty=value sets a Java-X option
Agent options:
-- name,-n the name of this agent (required)
-- conf-file,-f specify a config file (required if-z missing)
-- zkConnString,-z specify the ZooKeeper connection to use (required if-f missing)
-- zkBasePath,-p specify the base path in ZooKeeper for agent configs
-- no-reload-conf do not reload config file if changed
-- help,-h display help text
Avro-client options:
-- rpcProps,-P RPC client properties file with server connection params
-- host,-H hostname to which events will be sent
-- port,-p port of the avro source
-- dirname directory to stream to avro source
-- filename,-F text file to stream to avro source (default: std input)
-- headerFile,-R File containing event headers as key/value pairs on each new line
-- help,-h display help text
Either-rpcProps or both-host and-port must be specified.
Note that if directory is specified, then it is always included first
In the classpath.
Second, add configuration files
[root@hadoop0 apache-flume-1.6.0-bin] # vi conf/hw.conf
Agent.sources=s1
Agent.channels=c1
Agent.sinks=k1
Agent.sources.s1.type=netcat
Agent.sources.s1.channels=c1
Agent.sources.s1.bind=192.168.1.111
Agent.sources.s1.port=12345
Agent.channels.c1.type=memory
Agent.sinks.k1.type=logger
Agent.sinks.k1.channel=c1
III. Start and verify
[root@hadoop0 apache-flume-1.6.0-bin]
#. / bin/flume-ng agent-n agent-c conf-f conf/hw.conf-Dflume.root.logger=INFO,console
[root@hadoop0 ~] # netstat-tnpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
Tcp 0 0 0.0.0 0 9447 0.0.0 0 v * LISTEN 1349/rpc.statd
Tcp 0 0 0.0.0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 01. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 15. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0
Tcp 0 0 0.0.0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0
Tcp 0 0 127.0.0.1 631 0.0.0.0 * LISTEN 1382/cupsd
Tcp 0 0 127.0.0.1 25 0.0.0. 0 LISTEN 1618/master
Tcp 0 0: 111: * LISTEN 1304/rpcbind
Tcp 0 0: 13683: * LISTEN 1349/rpc.statd
Tcp 0 0: 22:: * LISTEN 1538/sshd
Tcp 0 0:: 1 631: * LISTEN 1382/cupsd
Tcp 0 0:: 1:25: * LISTEN 1618/master
[root@hadoop0 ~] # nc-l 12345
Nc: Address already in use
[root@hadoop0 ~] # nc localhost 12345
[root@hadoop0 ~] # nc 192.168.1.111 12345
Sdfsdfdsf
OK
Sdfsdfsdf
OK
Gaojingsong
OK
Whomai
OK
IV. Verification results
These are all the contents of the article "how to install Flume". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.