Apache Flume
This time, our group needed to prepare presentation about Apache Flume for EEDC homework. Flume is intended to solve challenges in safely transferring huge set of data from a node (example: log files in company web servers) to data store (example: HDFS, Hives, HBase, Cassandra etc etc).
[caption id=”” align=”aligncenter” width=”170” caption=”Apache Flume”][/caption]
Well, for a simple system with relatively small data set, we usually customize our own solution to do this job, such as to create some script to transfer the log to database. However, this kind of ad-hoc solution is difficult to make it scalable because usually it is created very tailored into our system. It sometimes suffers from problem in manageability, especially when the original programmer or engineer who created the system left the company. It is also often difficult to extend and, furthermore it may have problem in reliability due to some bugs during the implementation.
And Apache Flume comes into the rescue!!!
Apache Flume is a distributed data collection service that gets flows of data (like logs) from their source and aggregates them as they are processed. It is based on the concept of data flow through some Flume nodes. In a node, data come from a source, optionally processed by decorator and transmitted out to sink.
On the node level, Flume is modeled around these concepts
- Agents, are nodes that received data from the application (such as web server).
- Processors (optional), are nodes that performed intermediate processing of the data.
- Collectors, are nodes, that write to permanent data storage (such as HDFS, HBase, Cassandra etc).
It has these following goals that will solve aforementioned challenges in previous paragraph
- Reliability, by providing three types of failure recovery mechanism: Best-Effort, Store on Failure and Retry, and End-to-End Reliability
- Scalability, by applying Horizontally Scalable Data and Control Path, and Load Balancing technique.
- Extensibility, by providing simpe source and sink API, and providing plugin architecture.
- Manageability, by providing comprehensive interface to configure Flume and intuitive syntax to configure Flume node.
And as usual, here is the slide that prepared by our group: http://www.slideshare.net/arinto/apache-flume