Flume, as a real-time log collection system developed by Cloudera, has been recognized and widely used by the industry. The initial release version of Flume is now collectively known as Flume OG (original Generation), which belongs to Cloudera. But with the expansion of the FLume function,
Forwarded from the Mad BlogHttp://www.cnblogs.com/lxf20061900/p/3866252.htmlSpark Streaming is a new real-time computing tool, and it's fast growing. It converts the input stream into a dstream into an rdd, which can be handled using spark. It directly supports a variety of data sources: Kafka, Flume, Twitter, ZeroMQ, TCP sockets, etc., there are functions that can be manipulated:,,, map reduce joinwindow等。This article will connect spark streaming and
Flume Learning application: Write log data to MongoDB and flumemongodb in JavaOverview
Windows: Java writes logs to Flume, and Flume writes the logs to MongoDB. System Environment
Operating System: win7 64
JDK: 1.6.0 _ 43
Download Resources
Maven: 3.3.3Download, install, and get started: 1. Maven-start and 2. Create a simple Maven Project
OverviewApache Flume is a distributed, reliable, and available system. Ability to efficiently collect, summarize and move large amounts of log data from many different sources, one centralized data store.The use of Apache's flume is not limited to log data aggregation. Since the data source is customizable, flume can be used for a large number of events (each row
This article is a self-summary of learning, used for later review. If you have any mistake, don't hesitate to enlighten me.Here are some of the contents of the blog: http://blog.csdn.net/ymh198816/article/details/51998085Flume+kafka+storm+redis Real-time Analysis system basic Architecture1) The architecture of the entire real-time analysis system is2) The Order log is generated by the order server of the e-commerce system first,3) Then use Flume to li
This article mainly describes the process of using flume to transfer data to MongoDB, which involves environment deployment and considerations.First, Environment construction1, flune-ng:http://www.apache.org/dyn/closer.cgi/flume/1.5.2/apache-flume-1.5.2-bin.tar.gz2. MongoDB Java driver jar package: https://oss.sonatype.org/content/repositories/releases/org/mongod
Apache Next version (1.6) will bring a new component Kafkachannel, as the name implies is to use Kafka as the channel, of course, in the CDH5.3 version already exists this channel.As you know, there are three main channel commonly used:1, Memory channel: With the channel, the advantage is the fastest, easy to configure; The disadvantage is that the reliability is the worst, because once the flume process hangs the memory of the data is not out;2, File
first, Flume basic part:Flume--Log collection framework background: Log scattered across the machine, and want to use the big data platform for statistical analysis from other servers to collect log movement to the cluster, and can monitor, need to be timeliness, fault tolerance, load balancing Flume generally by configuring configuration File for an overview of the collection of data: flume.apache.org dist
Here are the solutions to seehttps://issues.apache.org/jira/browse/SPARK-1729Please be personal understanding, there are questions please leave a message.In fact, itself Flume is not support like Kafka Publish/Subscribe function, that is, can not let spark to flume pull data, so foreigners think of a trickery way.In flume in fact sinks is to the channel initiativ
Install flume
1, to the official website download flume, download address: http://flume.apache.org/download.html
2, [root@bicloud77 home]# tar zxvf apache-flume-1.5.2-bin.tar.gz
3, [root@bicloud77 home]# CD Apache-flume-1.5.2-bin
4,[root@bicloud76 apache-flume-1.5.2-bin]# b
The main introduction to the Hadoop family of products, commonly used projects include Hadoop, Hive, Pig, HBase, Sqoop, Mahout, Zookeeper, Avro, Ambari, Chukwa, new additions include, YARN, Hcatalog, O Ozie, Cassandra, Hama, Whirr, Flume, Bigtop, Crunch, hue, etc.Since 2011, China has entered the era of big data surging, and the family software, represented by
There are two ways, one is sparkstreaming in the driver from listening, flume to push the data, the other is sparkstreaming according to the time policy rotation to flume pull data.At first I thought there was only the first method, but the Nima problem is that driver up the knot is flaky, so every time I restart streaming found that every time to change the flume
Flume is a highly available, highly reliable, distributed mass log capture, aggregation, and transmission system provided by Cloudera, Flume supports the customization of various data senders in the log system for data collection, while Flume provides simple processing of data The ability to write to various data-receiving parties (customizable). The current
In the distributed system, each machine has the local log that the program runs, sometimes in order to analyze the demand, have to these scattered log summary requirements, I believe many people will choose RSYNC,SCP, but they are not strong in real-time, but also bring the problem of name conflict. The scalability is not satisfactory, not elegant at all.In reality, we are confronted with the need to summarize the Nginx logs of multiple servers on the line in real time.
Download apache-flume-1.7.0-bin.tar.gz, withTar -zxvfUnzip, add the settings in the/etc/profile file:Export Flume_home=/opt/apache-flume-1.7.0-binexport path= $PATH: $FLUME _home/binModify the two files under $flume_home/conf/and increase the java_home in flume-env.sh:java_home=/opt/jdk1.8.0_121Most importantly, modify
{ //no event, that is Backoffresult =Status.backoff; } //Commit a transactionTransaction.commit (); } Catch(Exception ex) {//rolling back a transactionTransaction.rollback (); Throw NewEventdeliveryexception ("Failed to log event:" +event, ex); } finally { //Close TransactionTransaction.close (); } returnresult; } } 3. Pack and place in/soft/flume/Lib under4, using the custom s
Logback-flume-appender Plug-in * logback.xml related configuration * in the following figure I output the trace level log to flume because we often use info, error, debug in the usual project
Write the log directly into Hadoop here, you can see the corresponding file in the console after the download, you can see the data inside, it will only record the d
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.