Skip to main content

HBase sink connector

The HBase sink connector pulls the messages from Pulsar topics and persists the messages to HBase tables

Configuration​

The configuration of the HBase sink connector has the following properties.

Property​

NameTypeDefaultRequired
hbaseConfigResourcesStringNonefalse
zookeeperQuorumStringNonetrue
zookeeperClientPortString2181false
zookeeperZnodeParentString/hbasefalse
tableNameNoneStringtrue
rowKeyNameStringNonetrue
familyNameStringNonetrue
qualifierNamesStringNonetrue
batchTimeMsLong1000lfalse
batchSizeint200false

Example​

Before using the HBase sink connector, you need to create a configuration file through one of the following methods.

  • JSON


    {
    "hbaseConfigResources": "hbase-site.xml",
    "zookeeperQuorum": "localhost",
    "zookeeperClientPort": "2181",
    "zookeeperZnodeParent": "/hbase",
    "tableName": "pulsar_hbase",
    "rowKeyName": "rowKey",
    "familyName": "info",
    "qualifierNames": [ 'name', 'address', 'age']
    }

  • YAML


    configs:
    hbaseConfigResources: "hbase-site.xml"
    zookeeperQuorum: "localhost"
    zookeeperClientPort: "2181"
    zookeeperZnodeParent: "/hbase"
    tableName: "pulsar_hbase"
    rowKeyName: "rowKey"
    familyName: "info"
    qualifierNames: [ 'name', 'address', 'age']