Uploaded image for project: 'Spring for Apache Hadoop'
  1. Spring for Apache Hadoop
  2. SHDP-109

HTablePool.PooledHTable is no longer instance of HTable

    Details

    • Type: Refactoring
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0.RC1
    • Fix Version/s: 1.0.0.RC2
    • Component/s: HBase
    • Labels:
      None

      Description

      Since HBase 0.94.2 PooledHTable just implements HTableInterface but does not extend HTable: http://svn.apache.org/viewvc/hbase/tags/0.94.2/src/main/java/org/apache/hadoop/hbase/client/HTablePool.java?view=markup

      So the code below will throw an exception if someone wants to use HTablePool in tableFactory

      HbaseUtils.java
      HTableInterface table = tableFactory.createHTableInterface(configuration, tableName.getBytes(charset));
      Assert.isInstanceOf(HTable.class, table, "The table factory needs to create HTable instances");
      

        Attachments

          Activity

            People

            • Assignee:
              costin Costin Leau
              Reporter:
              alext Alexander Tokarev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: