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

improve speed of table creation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.94.0
    • 0.95.0
    • None
    • None
    • Reviewed

    Description

      in CreateTableHandler
      for (int regionIdx = 0; regionIdx < this.newRegions.length; regionIdx++) {
      HRegionInfo newRegion = this.newRegions[regionIdx];
      // 1. Create HRegion
      HRegion region = HRegion.createHRegion(newRegion,
      this.fileSystemManager.getRootDir(), this.conf,
      this.hTableDescriptor, null, false, true);

      regionInfos.add(region.getRegionInfo());
      if (regionIdx % batchSize == 0)

      { // 2. Insert into META MetaEditor.addRegionsToMeta(this.catalogTracker, regionInfos); regionInfos.clear(); }

      // 3. Close the new region to flush to disk. Close log file too.
      region.close();
      }
      All the region will be create serially.
      If we have thousands of regions, that will be a huge cost.
      We can improve it by create the region in parallel

      Attachments

        1. HBASE-6459-trunk-v2.patch
          7 kB
          zhou wenjian
        2. HBASE-6459-trunk.patch
          7 kB
          zhou wenjian
        3. HBASE-6459-94.patch
          7 kB
          zhou wenjian
        4. HBASE-6459-92.patch
          11 kB
          zhou wenjian
        5. HBASE-6459-90.patch
          10 kB
          zhou wenjian
        6. 6459v3.txt
          7 kB
          Michael Stack
        7. 6459.v4
          5 kB
          Ted Yu

        Activity

          People

            zhou wen jian Zhou wenjian
            zhou wenjian zhou wenjian
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: