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

MSCK Repair table should fix partitions in batches

Log workAgile BoardRank to TopRank to BottomVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0
    • Component/s: Hive
    • Labels:
      None

      Description

      If a user attempts to run MSCK REPAIR TABLE on a directory with a large number of untracked partitions HMS will OOME. I suspect this is because it attempts to do one large bulk load in an effort to save time. Ultimately this can lead to a collection so large in size that HMS eventually hits an Out of Memory Exception.

      Instead I suggest that Hive include a configurable batch size that HMS can use to break up the load.

        Attachments

        1. HIVE-12077.5.patch
          6 kB
          Chinna Rao Lalam
        2. HIVE-12077.4.patch
          6 kB
          Chinna Rao Lalam
        3. HIVE-12077.3.patch
          6 kB
          Chinna Rao Lalam
        4. HIVE-12077.2.patch
          6 kB
          Chinna Rao Lalam
        5. HIVE-12077.1.patch
          4 kB
          Chinna Rao Lalam

        Issue Links

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment