Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

is it possible write to hbase by spark-sql?

Highlighted

is it possible write to hbase by spark-sql?

New Contributor

Hello

1) May i write somehow into hbase through spark-sql?

2) Does the SHC supports write operations (https://github.com/hortonworks-spark/shc) ?

it is great if here exists some java examples

3) I need to create a lot new columns in hbase and put information there, is it good idea work with hbase through spark-sql?

or i need to setup something else on top of hbase (phoenix, hive etc)

1 REPLY 1
Highlighted

Re: is it possible write to hbase by spark-sql?

Super Guru

You can use JavaHBaseContext bundled in hbase-spark package here. It offers bulk loading capabilities.

https://github.com/apache/hbase/blob/master/hbase-spark/src/main/scala/org/apache/hadoop/hbase/spark...

Don't have an account?
Coming from Hortonworks? Activate your account here