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: