Created on 09-10-2017 06:44 PM - edited 09-16-2022 05:13 AM
Hi,
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
Thanks
Shannon
Created 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:
https://www.cloudera.com/documentation/enterprise/5-10-x/topics/impala_refresh.html
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.
Created 09-10-2017 06:50 PM
Sometimes see the similar error during step 2) as well. Do i need to run invalidate after step 1?
Created 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:
https://www.cloudera.com/documentation/enterprise/5-10-x/topics/impala_refresh.html
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.