Flume Netcat Source Listener 44444-A simple example of Flume official documentation

Source: Internet
Author: User
Tags documentation

This article is a simple example of the flume official document in the practice and description of the official example

Http://flume.apache.org/FlumeUserGuide.html#a-simple-example

Flume's Netcat source automatically creates a socket Server that can fetch data simply by sending the data to the netcat source of this socket,flume.

Examples are as follows:

1, first configure the agent: in Flume's conf directory to create A2.porperties, and edit the following



2, in the Flume bin directory to execute the following command, start a a2 agent: at this time Flume will be in the machine to monitor the creation of a 44444-port socket service, if the client to the port to write data, then the flume directly grab data encapsulated into event, The order is as follows:



The last two lines of information to start a successful output are as follows:



3, test: Through the telnet command to 44444 port to write data to view the Flume agent output:

To perform telnet and write some random data, enter to send:



The output of the flume agent:



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.