Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTableInterface to HTable Type Cast Issue #1

Open
rtUsmanKhan opened this issue Feb 10, 2017 · 0 comments
Open

HTableInterface to HTable Type Cast Issue #1

rtUsmanKhan opened this issue Feb 10, 2017 · 0 comments

Comments

@rtUsmanKhan
Copy link

rtUsmanKhan commented Feb 10, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant