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

[hbase] restructure how HBase lays out files in the file system

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Currently HBase has a pretty flat directory structure. For example:

       /hbase/hregion_70236052/info
      /hbase/hregion_70236052/info/info/4328260619704027575
      /hbase/hregion_70236052/info/mapfiles/4328260619704027575
      /hbase/hregion_70236052/info/mapfiles/4328260619704027575/data
      /hbase/hregion_70236052/info/mapfiles/4328260619704027575/index
      

      All the region directories are under the root directory, and with encoded region names, it is impossible to determine what table a region belongs to. This should be restructured to:

      /root-directory/table-name/encoded-region-name/column-family/{info,mapfiles}
      

      It will be necessary to provide a migration script from current trunk to the new structure.

        Attachments

        1. patch.txt
          192 kB
          Jim Kellerman
        2. patch.txt
          189 kB
          Jim Kellerman
        3. patch.txt
          191 kB
          Jim Kellerman

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jimk Jim Kellerman
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: