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

0.96 Import utility can't import an exported file from 0.94

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.96.0
    • 0.98.0, 0.96.1
    • mapreduce
    • None
    • Reviewed
    • Hide
      To import 0.94 exported file in 0.96 cluster or onwards, you need to set system property "hbase.import.version" when running the import command as below:

      ./bin/hbase -Dhbase.import.version=0.94 org.apache.hadoop.hbase.mapreduce.Import <table name> <import file folder>
      Show
      To import 0.94 exported file in 0.96 cluster or onwards, you need to set system property "hbase.import.version" when running the import command as below: ./bin/hbase -Dhbase.import.version=0.94 org.apache.hadoop.hbase.mapreduce.Import <table name> <import file folder>

    Description

      Basically we PBed org.apache.hadoop.hbase.client.Result so a 0.96 cluster cannot import 0.94 exported files. This issue is annoying because a user can't import his old archive files after upgrade or archives from others who are using 0.94.

      The ideal way is to catch deserialization error and then fall back to 0.94 format for importing.

      Attachments

        1. exportedTableIn94Format
          0.4 kB
          Jeffrey Zhong
        2. hbase-9895.patch
          5 kB
          Jeffrey Zhong
        3. hbase-9895-v2.patch
          8 kB
          Jeffrey Zhong
        4. hbase-9895-v3.patch
          8 kB
          Jeffrey Zhong

        Issue Links

          Activity

            People

              jeffreyz Jeffrey Zhong
              jeffreyz Jeffrey Zhong
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: