Member since
01-26-2023
2
Posts
0
Kudos Received
0
Solutions
02-08-2023
04:58 AM
Hi @Shmoo , Thank you for the suggestion. This works! The MV can be rebuilt after manually deleting the stale locks. However, the next interesting question would be why do we get the stale lock? If we know why, we could prevent this from happening again, as an access to hive metastore is not something that we want to make available to all users.
... View more
01-26-2023
11:38 PM
Hi Team, I am trying to re-build my materialized view (ALTER MATERIALIZED VIEW <db>.<table> REBUILD;). However, I got an error message saying that there is another process re-building the MV. Error message: SQL Error [40000] [42000]: Error while compiling statement: FAILED: SemanticException org.apache.hadoop.hive.ql.parse.SemanticException: Another process is rebuilding the materialized view I tried to check if there is any write lock on the MV or the table, however there is none. I also tried to re-build the MV, but then I got the same error again when I tried to rebuild. Any idea why this is happening or how to check the "another process"?
... View more
Labels:
- Labels:
-
Apache Hive
-
Cloudera Hue