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");

猜你喜欢

转载自oitebody.iteye.com/blog/2230600