Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-14128

Fix inability to run Multiple MR over the same Snapshot

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Abandoned
    • None
    • None
    • mapreduce, snapshots

    Description

      from the list, running multiple MR over the same snapshot does not work

      public static void copySnapshotForScanner(Configuration conf, FileSystem ..
          RestoreSnapshotHelper helper = new RestoreSnapshotHelper(conf, fs,
            manifest, manifest.getTableDescriptor(), restoreDir, monitor, status);
      

      the problem is that manifest.getTableDescriptor() will try to clone the snapshot with the same target name. ending up in "file already exist" exceptions.
      we just need to clone that descriptor and generate a new target table name

      Attachments

        1. HBASE-14128-v0.patch
          22 kB
          Matteo Bertozzi

        Activity

          People

            Unassigned Unassigned
            mbertozzi Matteo Bertozzi
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: