2
我創建一個外部表有錯誤(不存在)的路徑:帕拉不能刪除外部表
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 – Geek2Sages