Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-28416

Another process is rebuilding the materialized view is thrown for subsequent MV rebuilds when the current MV rebuild is aborted for the same MV.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.1.0
    • None

    Description

      Hive materialized views rebuild issue:

      Abruptly killing the current Materialized View Rebuild command results in not deleting the LOCK entry in the backend metastore DB table 'materialization_rebuild_locks'. With this next time onwards the Materialized View Rebuild command will fail for that Materialied View.

      ALTER MATERIALIZED VIEW view_name REBUILD;

       

      =====
      Error: Error while compiling statement: FAILED: SemanticException org.apache.hadoop.hive.ql.parse.SemanticException: Another process is rebuilding the materialized
      view view_name (state=42000,code=40000)
      =====

      Attachments

        Issue Links

          Activity

            People

              Dayakar Dayakar M
              Dayakar Dayakar M
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: