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

Hive should support clean-up of previously bootstrapped tables when retry from different dump.

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      If external tables are enabled for replication on an existing repl policy, then bootstrapping of external tables are combined with incremental dump.
      If incremental bootstrap load fails with non-retryable error for which user will have to manually drop all the external tables before trying with another bootstrap dump. For full bootstrap, to retry with different dump, we suggested user to drop the DB but in this case they need to manually drop all the external tables which is not so user friendly. So, need to handle it in Hive side as follows.

      REPL LOAD takes additional config (passed by user in WITH clause) that says, drop all the tables which are bootstrapped from previous dump.
      hive.repl.clean.tables.from.bootstrap=<previous_bootstrap_dump_dir>

      Hive will use this config only if the current dump is combined bootstrap in incremental dump.
      Caution to be taken by user that this config should not be passed if previous REPL LOAD (with bootstrap) was successful or any successful incremental dump+load happened after "previous_bootstrap_dump_dir".

      Attachments

        1. HIVE-21286.05.patch
          23 kB
          Sankar Hariappan
        2. HIVE-21286.04.patch
          22 kB
          Sankar Hariappan
        3. HIVE-21286.03.patch
          22 kB
          Sankar Hariappan
        4. HIVE-21286.02.patch
          17 kB
          Sankar Hariappan
        5. HIVE-21286.01.patch
          15 kB
          Sankar Hariappan

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sankarh Sankar Hariappan Assign to me
            sankarh Sankar Hariappan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 6h
              6h

              Slack

                Issue deployment