Hbase

Hbase sink connector

Output data to Hbase

Key featuresarrow-up-right

name
type
required
default value

zookeeper_quorum

string

yes

-

table

string

yes

-

rowkey_column

list

yes

-

family_name

config

yes

-

rowkey_delimiter

string

no

""

version_column

string

no

-

null_mode

string

no

skip

wal_write

boolean

yes

false

write_buffer_size

string

no

8 1024 1024

encoding

string

no

utf8

hbase_extra_config

string

no

-

common-options

no

-

ttl

long

no

-

zookeeper_quorum [string]arrow-up-right

The zookeeper cluster host of hbase, example: "hadoop001:2181,hadoop002:2181,hadoop003:2181"

table [string]arrow-up-right

The table name you want to write, example: "nexus"

rowkey_column [list]arrow-up-right

The column name list of row keys, example: ["id", "uuid"]

family_name [config]arrow-up-right

The family name mapping of fields. For example the row from upstream like the following shown:

id
name
age

1

tyrantlucifer

27

id as the row key and other fields written to the different families, you can assign

family_name { name = "info1" age = "info2" }

this means that name will be written to the family info1 and the age will be written to the family info2

if you want other fields written to the same family, you can assign

family_name { all_columns = "info" }

this means that all fields will be written to the family info

rowkey_delimiter [string]arrow-up-right

The delimiter of joining multi row keys, default ""

version_column [string]arrow-up-right

The version column name, you can use it to assign timestamp for hbase record

null_mode [double]arrow-up-right

The mode of writing null value, support [skip, empty], default skip

  • skip: When the field is null, connector will not write this field to hbase

  • empty: When the field is null, connector will write generate empty value for this field

wal_write [boolean]arrow-up-right

The wal log write flag, default false

write_buffer_size [int]arrow-up-right

The write buffer size of hbase client, default 8 * 1024 * 1024

encoding [string]arrow-up-right

The encoding of string field, support [utf8, gbk], default utf8

hbase_extra_config [config]arrow-up-right

The extra configuration of hbase

Hbase writes data TTL time, the default is based on the TTL set in the table, unit: milliseconds

common optionsarrow-up-right

Sink plugin common parameters, please refer to Sarrow-up-rightSink Common Options for details

Writes To The Specified Column Familyarrow-up-right

Last updated