Skip to content

HTableInterface to HTable Type Cast Issue #1

Description

@rtUsmanKhan

Hi, I am using this api for loading bulk of json files to HBase. While executing it throws an exception
Exception in thread "main" java.lang.ClassCastException: org.apache.hadoop.hbase.client.HTablePool$PooledHTable cannot be cast to org.apache.hadoop.hbase.client.HTable
at com.igalia.hbaseloader.utils.HBaseHelper.getTable(HBaseHelper.java:96)
at com.igalia.hbaseloader.utils.HBaseHelper.getOrCreateTable(HBaseHelper.java:92)
at com.igalia.hbaseloader.HBaseLoader.main(HBaseLoader.java:50)

This exception is raised from method getTable(String) from HbaseHelper Class. Actually this method calls another method which returns it a type of HTableInterface, it then typecast to HTable and then exception is raised.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions