hive映射hbase表

hive映射hbase表数据:
CREATE EXTERNAL TABLE usinglog(rowkey string, activities string, appkey string)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ("hbase.columns.mapping" = "f:activities, f:appkey")
TBLPROPERTIES ("hbase.table.name" = "razor:usinglog");

 

你可能感兴趣的:(hbase)