如何在具有位置的hbase上创建外部表

时间:2019-07-25 09:56:07

标签: hive

在创建具有位置的外部表时出现错误

我尝试了位置选项出错

CREATE external TABLE user_db.test_hbase(
col_1 String,
col_2 String
)
CLUSTERED BY (col_1) INTO 6 BUCKETS
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,test_hbase:col_2")
LOCATION 
'/user/production/'
TBLPROPERTIES("hbase.table.name" = "user_db:test_hbase");

失败:执行错误,从org.apache.hadoop.hive.ql.exec.DDLTask返回代码1。 MetaException(可能未为HBase指定message:LOCATION。)

0 个答案:

没有答案
相关问题