【发布时间】:2017-02-08 06:27:05
【问题描述】:
我创建了一个路径错误(不存在)的外部表:
create external table IF NOT EXISTS ds_user_id_csv
(
type string,
imei string,
imsi string,
idfa string,
msisdn string,
mac string
)
PARTITIONED BY(prov string,day string)
ROW FORMAT DELIMITED FIELDS TERMINATED BY ','
stored as textfile
LOCATION 'hdfs://cdh0:8020/user/hive/warehouse/test.db/ds_user_id';
而且我不能放下桌子:
[cdh1:21000] > drop table ds_user_id_csv
> ;
Query: drop table ds_user_id_csv
ERROR:
ImpalaRuntimeException: Error making 'dropTable' RPC to Hive Metastore:
CAUSED BY: MetaException: java.lang.IllegalArgumentException: Wrong FS: hdfs://cdh0:8020/user/hive/warehouse/test.db/ds_user_id, expected: hdfs://nameservice1
那么如何解决呢?谢谢。
【问题讨论】:
-
你能改变位置吗?
ALTER TABLE name ds_user_id_csv SET LOCATION '{new location}'; -
非常感谢!我改变了位置,最后我把它删除了。@Dudu Markovitz
标签: sql hdfs cloudera-cdh impala