09-10-2017 06:44 PM
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
09-14-2017 06:57 AM
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.