Big Data Novice Road II: Installation Flume

Source: Internet
Author: User

win7+ubuntu16.04+flume1.8.0

1. Download apache-flume-1.8.0-bin.tar.gz

Http://flume.apache.org/download.html

2. Unzip into the/usr/local/flume

3. Set the configuration file/etc/profile file to increase the path of flume

①vi/etc/profile

Export flume_home=/usr/local/flumeexport PATH= $PATH: $FLUME _home/bin

② make the configuration file effective immediately

Source/etc/profile

4. Check whether the flume environment is in effect

Flume-ng version

5. Add a example.conf file to the/etc/local/flume/conf

# example.conf:a single-node Flume configuration# Name The components in this agenta1.sources=r1a1.sinks=K1a1.channels=c1# Describe/Configure the Sourcea1.sources.r1.type=Netcata1.sources.r1.bind=Localhosta1.sources.r1.port=44444# Describe The Sinka1.sinks.k1.type=logger# use a channelwhichBuffers EventsinchMemorya1.channels.c1.type=memorya1.channels.c1.capacity= +a1.channels.c1.transactionCapacity= -# Bind The source and sink to the Channela1.sources.r1.channels=C1a1.sinks.k1.channel= C1

6. Start Flume

Flume-ng Agent--conf/usr/local/flume/conf--conf-file /usr/local/flume/conf/example.conf--name A1- Dflume.root.logger=info,console

7. Connect to flume and send data using Telnet

44444127.0. 0.1 ... Connected to Localhost.localdomain (127.0. 0.1  '^]'. HelloWorld! <ENTER>OK

8. The following information can be seen in the flume process

[Info-org.apache.flume.sink.loggersink.process (Loggersink.java:  $  the  -  0D          Hello world!.}

Above.

Big Data Novice Road II: Installation Flume

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.