hive处理hbase数据

CREATE EXTERNAL TABLE table1(
key  string,
zoneid  int,
result  int,
) 
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' 
WITH SERDEPROPERTIES
("hbase.columns.mapping" = 
":key,t:ZoneID,t:Result")
TBLPROPERTIES("hbase.table.name" = "Table1");

hbase表名:Table1,列族:t

原文地址:https://www.cnblogs.com/ggzone/p/5170967.html