Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-2883

HMS check/fix tool should accommodate tables without ID for dropping orphan hms tables.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.10.0
    • Component/s: CLI, hms
    • Labels:
      None

      Description

      In cases that table has no ID(created when HMS integration is disabled), HMS check/fix tool should accommodate such cases for dropping orphan hms tables (https://github.com/apache/kudu/blob/master/src/kudu/tools/tool_action_hms.cc#L616).

      As of now, in attempt to run the kudu hms fix tool in the presence of such tables (e.g., db_name.table_name below), the tool reports an error:

      sudo -u kudu kudu hms fix localhost --drop_orphan_hms_tables --force --ignore_other_clusters=false
      
      Remote error: failed to drop orphan HMS table db_name.table_name: failed to drop Hive Metastore table: TException - service has thrown: MetaException(message=Kudu table ID does not match the HMS entry)
      

        Attachments

          Activity

            People

            • Assignee:
              granthenke Grant Henke
              Reporter:
              hahao Hao Hao
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: