1. Background introduction Many of the company's platforms generate a large number of logs per day (typically streaming data, for example, the search engine PV, query, etc.), the processing of these logs requires a specific log system, in general, these systems need to have the following characteristics: (1) The construction of application systems and analysis systems of the bridge, and the correlation between them decoupling (2) support for near real-time online analysis system and off-line ana
Liaoliang Teacher's course: The 2016 big Data spark "mushroom cloud" action spark streaming consumption flume collected Kafka data DIRECTF way job.First, the basic backgroundSpark-streaming get Kafka data in two ways receiver and direct way, this article describes the way of direct. The specific process is this:1, direct mode is directly connected to the
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
First, the demand
Use flume to capture the file information under Linux and pass it into the Kafka cluster.
Environment ready Zookeeper cluster and Kafka cluster are installed well.
Second, the configuration flume
Download Flume website. The blogge
is currently used by exec in our system for log capture.Flume data recipients, which can be console (console), text (file), DFS (HDFs file), RPC (THRIFT-RPC), and syslogtcp (TCP syslog log system), and so on. It is received by Kafka in our system.Flume Download and Documentation: Http://flume.apache.org/Flume installation:$tar zxvf apache-
("Flume sends a message to Kafka:" +NewString (E.getbody ())); Tx.commit (); returnStatus.ready; } Catch(Exception e) {logger.error ("Flume kafkasinkexception:", E); Tx.rollback (); returnStatus.backoff; } finally{tx.close (); } }}Export the jar package and put it under $flume_home/lib(File->export->jar File all default parameters)Create
Flume is a real-time message collection system, it defines a variety of source, channel, sink, can be selected according to the actual situation.Flume Download and Documentation:http://flume.apache.org/KafkaKafka is a high-throughput distributed publish-subscribe messaging system that has the following features:
Provides persistence of messages through the disk data structure of O (1), a structure that maintains long-lasting performance even
1. Background information
Many of the company's platforms generate a large number of logs per day (typically streaming data, such as search engine PV, queries, etc.), and processing these logs requires a specific logging system, in general, these systems need to have the following characteristics:
(1) Construct the bridge of application system and analysis system, and decouple the correlation between them;
(2) Support near real-time online analysis system and similar to the offline analysis sys
1. Background information
Many of the company's platforms generate a large number of logs per day (typically streaming data, such as search engine PV, queries, etc.), and processing these logs requires a specific logging system, in general, these systems need to have the following characteristics:
(1) Construct the bridge of application system and analysis system, and decouple the correlation between them;
(2) Support near real-time online analysis system and similar to the offline analysis syst
Acquisition Layer Flume can be used mainly , Kafka two kinds of technology. Flume:Flume is a pipeline flow method that provides a number of default implementations that allow users to deploy through parameters and extend the API. Kafka:Kafka is a durable, distributed message queue.
The Kafka is a very versatile system. You can have many producers a
Acquisition Layer can be used mainly Flume, Kafka two kinds of technology. Flume:Flume is a pipeline flow method that provides a number of default implementations that allow users to deploy through parameters and extend the API. Kafka:Kafka is a durable, distributed message queue.
The Kafka is a very versatile system. You can have many producers and m
Hu Xi, "Apache Kafka actual Combat" author, Beihang University Master of Computer Science, is currently a mutual gold company computing platform director, has worked in IBM, Sogou, Weibo and other companies. Domestic active Kafka code contributor.ObjectiveAlthough Apache Kafka
-flume-1.5.2-bin/tracklog-kafka/checkpointAgent.channels.m1.datadirs=/opt/modules/apache-flume-1.5.2-bin/tracklog-kafka/datadirAgent.channels.m1.transactionCapacity = 1000000agent.channels.m1.capacity=1000000Agent.channels.m1.checkpointInterval = 30000
Second, the da
Https://www.ibm.com/developerworks/cn/opensource/os-cn-kafka/index.htmlKafka and Flume Many of the functions are really repetitive. Here are some suggestions for evaluating the two systems:
Kafka is a general-purpose system. You can have many producers and consumers to share multiple themes. Conversely, Flume
1. Create a Agent,sink type to be specified as a custom sinkVi/usr/local/flume/conf/agent3.confAgent3.sources=as1Agent3.channels=c1Agent3.sinks=s1Agent3.sources.as1.type=avroagent3.sources.as1.bind=0.0.0.0agent3.sources.as1.port=41414Agent3.sources.as1.channels=c1Agent3.channels.c1.type=memoryAgent3.sinks.s1.type=storm.test.kafka.testkafkasinkAgent3.sinks.s1.channel=c12. Create custom Kafka Sink (custom
Real-time streaming processing complete flow based on flume+kafka+spark-streaming
1, environment preparation, four test server
Spark Cluster Three, SPARK1,SPARK2,SPARK3
Kafka cluster Three, SPARK1,SPARK2,SPARK3
Zookeeper cluster three, SPARK1,SPARK2,SPARK3
Log Receive server, SPARK1
Log collection server, Redis (this machine is used to do redis development, now
First of all, Flume and Kafka are message systems , but they also have a lot of different places, flume more toward the message acquisition system, and Kafka more toward the message cache system. The difference in "one" designFlume is a message acquisition system, which mainly solves the problem is the multiple collec
1.Jdkthe installationrefer to the installation of the JDK here. 2.installationZookeeperrefer to my The "Fully distributed" section of the Zookeeper installation tutorial. 3.installationKafkarefer to my The "Fully distributed Build" section of the Kafka installation tutorial. 4.installationFlumerefer to my Flume Installation Tutorial. 5.ConfigurationFlume5.1. ConfigurationKafka-s.cfg$ cd/software/
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.