Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using for complex hbase format #7

Open
pranny opened this issue Nov 1, 2017 · 1 comment
Open

Using for complex hbase format #7

pranny opened this issue Nov 1, 2017 · 1 comment

Comments

@pranny
Copy link

pranny commented Nov 1, 2017

I have a hbase table with multiple column families. From the given example, I am not sure how do I create my configs.

My table looks like

column family: main, column name: value
column family: main, column name: timestamp
column family: meta, column name: datatype

The Kafka Topic has Value schema that goes like

fields:
  - key: Corresponds to the hbase key
  - value: Corresponds to the "main:value"
  - timestamp: Corresponds to "main:timestamp"
  - datatype: Corresponds to "meta:datatype"

Is something like below a valid config?

tasks.max=1
topics=telemetry
zookeeper.quorum=localhost:2181
event.parser.class=io.svectors.hbase.parser.AvroEventParser
hbase.telemetry.rowkey.columns=value, timestamp, datatype
hbase.telemetry.rowkey.delimiter=:
hbase.telemetry.family=main, meta
@nishutayal
Copy link

It seems, it supports one column family as of now. I have enhanced the code with multiple column family support and custom column mapping. You can refer this for your use case:
https://github.com/nishutayal/kafka-connect-hbase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants