在创建具有位置的外部表时出现错误
我尝试了位置选项出错
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。)