Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-2072

The constructor of RegionSizeCalculator changes for HBase 1.0.0 compatibility

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.11.1
    • Fix Version/s: 0.12.0, 0.11.1
    • Component/s: HBase Storage
    • Labels:
      None

      Description

      Now, the hbase storage code is below. Tajo uses the getRegionLocator() method of HTable, HBase 1.1.0 version.
      I wish getRegionLocator() method to remove for HBase 1.0.0 compatibility. HTable already implements RegionLocator interface.

      Thank you.

      public RegionSizeCalculator(HTable table) throws IOException {
      HBaseAdmin admin = new HBaseAdmin(table.getConfiguration());
      try

      { init(table.getRegionLocator(), admin); }

      finally

      { admin.close(); }
      }

      to

      public RegionSizeCalculator(HTable table) throws IOException {
      HBaseAdmin admin = new HBaseAdmin(table.getConfiguration());
      try { init(table, admin); } finally { admin.close(); }

      }

        Attachments

          Activity

            People

            • Assignee:
              combine Byunghwa Yun
              Reporter:
              combine Byunghwa Yun
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: