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

Offline meta repair fails if the HBase base mount point is on a different cluster/volume than its parent in a ViewFS or similar FS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.94.1, 0.95.0
    • hbck
    • None
    • Reviewed
    • Hide
      -sidelineDir option has been added to both hbck and OfflineMetaRepair.
      It allows specification of hdfs directory where offlined data is stored.
      Show
      -sidelineDir option has been added to both hbck and OfflineMetaRepair. It allows specification of hdfs directory where offlined data is stored.

    Description

      While building the .META. and -ROOT- from FS data alone (HBASE-4377), hbck tries to move the existing .META. and -ROOT- directories to a backup folder.

      This backup folder is created at the same level as the base HBase folder (e.g. /hbase-xxxxxx if the base HBase folder is '/hbase').

      In a federated HDFS like ViewFS and other similar FS implementations, it is not possible to rename files/directories across namespace volumes (ViewFS guide section 3.5) and as a result hbck crashes.

      A solution to this problem is to create the backup directory under the folder where HBase base folder has been mounted. This ensures that source and destination of rename operation are on the same namespace volume.

      Patch for 0.94 and trunk is attached for review. The patch modifies the location of the backup directory from '/hbase-xxxxxxx' to '/hbase/.hbcktmp-xxxxxxx'

      Attachments

        1. HBASE-6236_trunk.patch
          8 kB
          Aditya Kishore
        2. HBASE-6236_94.patch
          4 kB
          Aditya Kishore
        3. 6236-94.txt
          7 kB
          Ted Yu
        4. 6236-94.addendum
          4 kB
          Ted Yu
        5. 6236_trunk.patch
          5 kB
          Ted Yu

        Activity

          People

            adityakishore Aditya Kishore
            adityakishore Aditya Kishore
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: