Flume installation and configuration, and flume installation ConfigurationFlumeInstallation and configuration
0. Follow jdk.
Download the jdk-1.8.0 and apache-flume Binary packagesSet the software path as follows:Jdk: // usr/local/jdk-1.8.0Flume:/opt/apache-flume
1. Configure flume
Organize from the networkUnix IPC includes: piping (pipe), named pipe (FIFO) and signal (Signal)Piping (pipe)Pipelines can be used for communication between affinity processes, and well-known pipelines overcome the limitations of pipe without name, so that, in addition to having the functions of a pipeline, it allows c
Recently learned the use of the next flume, in line with the company will be independent of the development of the log system, the official website user manual: Http://flume.apache.org/FlumeUserGuide.htmlFlume schema A. ComponentFirst move, the structure of the Internet.As you can see from the diagram, the Flume event is defined as a data stream, a data stream consisting of an agent, which is actually a JVM
," + "increasing capacity, or increasing thread count") ; }
Take before also pre-judgment, if the takelist is full, indicating take operation is too slow, there is an event accumulation phenomenon, you should adjust the transaction capacitywhat happens when a transaction commits, and what does the transaction commit?? Commit is a transaction commitTwo cases:1, put the event submissionwhile (!putlist.isempty ()) { if (!queue.offer (Putlist.removefirst ())) {
From Bin/flume this shell script can see Flume starting from the Org.apache.flume.node.Application class, which is where the main function of Flume is.
The main method first resolves the shell command, throwing an exception if the specified configuration file does not exist.
According to the command contains "no-reload-conf" parameters, decide which way to load t
-bin.tar.gzRename the extracted Apache-flume-1.5.0-bin folder to Flume, so we flume the path is/home/flumeOnline a lot of said to set flume home environment variable, actually do notHere we add a configuration file to/home/flume/conf/netcat.conf (where the agent2/source2/sin
initiates a lifecyclesupervisor, which is responsible for monitoringSourcerunner, Sinkrunner,channel of the operating conditions. The Lifecycleaware interfaces are implemented or inherited by these green-box-labeled components, and the way you monitor them is a bit of a point: check that the expected status of these components is consistent with the current status by timing, and if not, call the status corresponding method.For example, when booting, expect the Sinkrunner state to be running, th
How to use pipeline Pipe of Angular2, and pipeline pipe of angular2
Pipeline Pipe can use data as input and convert and output data according to rules. There are many built-in Pipe in Angular2, such as DatePipe, UpperCasePipe, and currenpolicipe. Here we will mainly introduce how to customize
I am testing HDFs sink, found that the sink side of the file scrolling configuration items do not play any role, configured as follows:a1.sinks.k1.type=hdfsa1.sinks.k1.channel=c1a1.sinks.k1.hdfs.uselocaltimestamp=truea1.sinks.k1.hdfs.path=hdfs:/ /192.168.11.177:9000/flume/events/%y/%m/%d/%h/%ma1.sinks.k1.hdfs.fileprefix=xxxa1.sinks.k1.hdfs.rollinterval= 60a1.sinks.k1.hdfs.rollsize=0a1.sinks.k1.hdfs.rollcount=0a1.sinks.k1.hdfs.idletimeout=0The configur
Communication between processes in Linux Named Pipe (FIFO)Name the pipe (FIFO), which is the same as the normal pipe. It is used as an intermediate postman to implement communication between two processes.The named pipe (FIFO) has the following features:1. The Named Pipe (FI
{ return null; } }4. Return to a usable sinkIf a failure occurs, then look at the execution logic of the first half of the code in the process:Long now = System.currenttimemillis (); while (!failedsinks.isempty () Failedsinks.peek (). Getrefresh () Prerequisites: Failedsinks is not empty and the sink activation time of the team header is less than the current time1, poll out the queue of the first Failedsink2, using the current sink processing, if the processing is successful, then
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 dire
1. Introduction to Flume
Flume is a distributed, reliable, andHigh AvailabilityA system that aggregates massive logs. It supports customization of various data senders to collect data. Flume also provides simple processing of data and writes it to various data receivers (customizable) capabilities.Design goals:
(1) Reliability
When a node fails, logs can be trans
Can't open named pipe to host:. pipe: MySQL, namedpipeThe following error is reported when mysql is connected to odbc: Can't open named pipe to host:. pipe: MySQL:According to the methods mentioned on the Internet, the official mysql statement did not work. The final solution is to delete the old odbc connection and cr
Recently I have followed some network protocols used by SQL Server, such as named pipe:
Named Pipe (Named Pipe) is a protocol used for LAN. Under this protocol, a part of the computer's memory is used by a process to transmit information to another process. The latter can be a local process or remote process.
In what scenarios will named
producers and consumers, then you need to use Kafka.
Flume can process data in real time in interceptors. This feature is useful for filtering data. Kafka requires an external system to help process the data.
Both systems can guarantee no loss of data, either Kafka or Flume. Then, Flume does not replicate the event. Accordingly, even if we are using a tr
This paper will take timestampinterceptor as an example to analyze how interceptors work in Flume.First, consider the implementation structure of the Interceptor.1. Interceptor interface is realizedThe method of the interface is defined as follows: public void Initialize (); Public event intercept (event event); Public list public void close ();/** Builder implementations must have a no-arg constructor * * Public Interface Builder extends configurable { Publ IC Interceptor Build (); }2.
Look at the previous section: Linux Shell Data Redirection (input redirection and output redirection) detailed analysis It is estimated that some friends are dizzy, so complex redirect. This time we'll take a look at the pipe command. Shell pipe, it can be said that the usage is much simpler.
The pipe command operator is: "|", which can only handle the correct
IconAs shown in the Red box section, I do stability testing, when the flume run a few days later, I found that the counter value gradually become larger, to a certain value, and then become smaller, there is a cycle of the process, and therefore the desire to produce research, the following to see:if (Txneventcount = = 0) { sinkcounter.incrementbatchemptycount (); } else if (Txneventcount = = batchsize) { Sinkcounter.incrementbatchc
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.