通过hive创建hbase外部表语句:
create external table test1(r string,a string)
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES
("hbase.columns.mapping" =
":key,c:a")
TBLPROPERTIES("hbase.table.name" = "test:test1");
test:test1 是test数据库下的test1表