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

The constructor of RegionSizeCalculator changes for HBase 1.0.0 compatibility

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.11.1
    • 0.12.0, 0.11.1
    • HBase Storage
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: