Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
sample HBase-mapped Hive table with timestamp for column family
CREATE EXTERNAL TABLE hbase_json_table(key string, json string, time timestamp)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf:json,:timestamp")
TBLPROPERTIES ("" = "jsontable");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment