Home

Awesome

hbase-connect-kafka

Publish changes of HBase tables to Kafka .

Pre-requisites

How it works

HBaseEndpoint is a custom replication end point that receives all mutations( Put / Delete). Based on the white list topics specified in the hbase-site.xml, the events are filtered and mirrored to Kafka using the Kafka producer api.

Assumptions

Properties

Have the below properties set in hbase-site.xml and add it to the HBase region server classpath. Each kafka producer property should be prefixed with kafka.

namedata typerequireddescription
kafka.bootstrap.serversstringyesKafka broker servers.
kafka.producer.typestringnoCan be either sync or async. Default sync

Packaging

Deployment

hbase> create 'test', {NAME => 'd', REPLICATION_SCOPE => '1'}
hbase> add_peer 'kafka-repl', ENDPOINT_CLASSNAME 'io.svectors.hbase.cdc.HbaseEndpoint'
hbase> put 'test', 'r1', 'd', 'value'

TODO