Hive映射Hbase关联表

Hive映射Hbase表

CREATE EXTERNAL TABLE DAC_test01(
rowkey STRING, name STRING, address STRING)
ROW FORMAT SERDE 'org.apache.hadoop.hive.hbase.HBaseSerDe' 
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' 
WITH SERDEPROPERTIES ('hbase.columns.mapping' = ':key,f1:name,f1:address') 
TBLPROPERTIES ('hbase.table.name' = 'ASMP:DAC_test01');

查看Hive表结构

show create table DAC_test01;

你可能感兴趣的:(hive)