What is a good way to set up access to a HBase table through shark queries? I explored some articles which are geared towards setting up HBase with Hive such as https://cwiki.apache.org/confluence/display/Hive/HBaseIntegration , but not too sure how this applies for Shark. I am mainly looking for read's from HBase through Shark. Any help is appreciated, thanks.
Asked
Active
Viewed 162 times
-1
-
Shark is no longer supported I guess, why not try spark-sql instead? – yjshen Sep 04 '14 at 03:30
-
http://spark.apache.org/docs/latest/sql-programming-guide.html#hive-tables could help when you use spark-sql with hive. i.e. you create hive table that use hbaseStoragehandler using `hql(CREATE TABLE IF NOT EXISTS src (key INT, value STRING)) STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf1:val") TBLPROPERTIES ("hbase.table.name" = "xyz"))` and query it as `hql("FROM src SELECT key, value").collect().foreach(println)` – yjshen Sep 04 '14 at 03:35
-
Btw, I haven't try this myself but it sounds possible. :), since for Hive, HBase is just another data format. – yjshen Sep 04 '14 at 03:37
1 Answers
1
The link in the question worked as is with shark acting as a drop in replacement for hive.

DaTaBomB
- 623
- 3
- 11
- 23