| 1. |
How Can Flume Be Used With Hbase? |
|
Answer» Apache Flume can be used with HBase using one of the two HBase links:
Working of the HBaseSink: In HBaseSink, a Flume Event is converted into HBase Increments or Puts. SERIALIZER implements the HBaseEventSerializer which is then instantiated when the sink starts. For every event, sink calls the initialize method in the serializer which then translates the Flume Event into HBase increments and puts to be sent to HBase CLUSTER. Working of the AsyncHBaseSink: AsyncHBaseSink implements the AsyncHBaseEventSerializer. The initialize method is called only once by the sink when it starts. Sink invokes the setEvent method and then makes calls to the getIncrements and getActions methods just similar to HBase sink. When the sink STOPS, the cleanUp method is called by the serializer.
Apache Flume can be used with HBase using one of the two HBase links: Working of the HBaseSink: In HBaseSink, a Flume Event is converted into HBase Increments or Puts. Serializer implements the HBaseEventSerializer which is then instantiated when the sink starts. For every event, sink calls the initialize method in the serializer which then translates the Flume Event into HBase increments and puts to be sent to HBase cluster. Working of the AsyncHBaseSink: AsyncHBaseSink implements the AsyncHBaseEventSerializer. The initialize method is called only once by the sink when it starts. Sink invokes the setEvent method and then makes calls to the getIncrements and getActions methods just similar to HBase sink. When the sink stops, the cleanUp method is called by the serializer.
|
|