Created
November 9, 2015 21:06
-
-
Save dbist/8ad3861b700aa25f89e0 to your computer and use it in GitHub Desktop.
sample HBase-mapped Hive table with timestamp for column family
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ("hbase.table.name" = "jsontable"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment