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

Confusing logging error around rerun of restore on an existing table.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0-alpha-4, 2.0.0
    • None
    • None
    • Reviewed

    Description

      On executing restore command on already existing table

      ./hbase restore hdfs://localhost:8020/test/ backup_1506352287382 -t test1 -m test1_restore_incremental

      Output
      ======
      2017-09-25 20:46:44,624 ERROR [main] impl.RestoreTablesClient: Existing table ([test1_restore_incremental]) found in the restore target, please add "-overwrite" option in the command if you mean to restore to these existing tables
      java.io.IOException: Existing table found in target while no "-overwrite" option found

      But when we run the restore command again with the -overwrite option it gives error

      ./hbase restore hdfs://localhost:8020/test/ backup_1506352287382 -t test1 -m test1_restore_incremental -overwrite

      Error when parsing command-line arguments: Unrecognized option: -overwrite

      Attachments

        1. HBASE-18941.patch
          2 kB
          Amit Kabra

        Activity

          People

            amitkabraiiit Amit Kabra
            amitkabraiiit Amit Kabra
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: