Posts: 116
Registered: ‎09-14-2016
Accepted Solution

Failed to load metadata



For my table, I am regenerating for a partition, what i do is


1) remove from hdfs

2) insert to the partition from my staging table

3) invalidate metadata on the table

4) compute incremental stat on the partition


from time to time, i see this on step 4


ERROR: AnalysisException: Failed to load metadata for table: 'ABC'
CAUSED BY: TableLoadingException: Failed to load metadata for table: default.ABC. Running 'invalidate metadata default.ABC' may resolve this problem.
CAUSED BY: MetaException: Object with id "" is managed by a different persistence manager





Posts: 116
Registered: ‎09-14-2016

Re: Failed to load metadata

Sometimes see the similar error during step 2) as well. Do i need to run invalidate after step 1?

Cloudera Employee
Posts: 2
Registered: ‎05-17-2017

Re: Failed to load metadata

Per documentation, you should be using the refresh command after modifying an impala table in the way that you have described (modifying the HDFS directly). The refresh command has been documented in the following link:


You should execute a refresh command after removing the file from the HDFS. You do not need to execute the refresh command if you are adding a new partition in Impala, it is only needed if you are doing it via Hive or HDFS.