创建hive与hbase关联的hive表与hbase表

创建hive与hbase的关联表

  create external table hive_hbase(rowkey string,name string,addr string,topic string,creator_name string) stored by'org.apache.hadoop.hive.hbase.HBaseStorageHandler' with serdeproperties("hbase.columns.mapping" = ":key,cf:name ,cf:addr ,cf:topic,cf:topic,cf:creator_name ") tblproperties("hbase.table.name" = "hbase_hive");

  create table rklog(rowkey string,name string,addr string,topic string,creator_name string) PARTITIONED BY (partition_time string)

原文地址:https://www.cnblogs.com/xjh713/p/7768620.html