Open Mahesha999 opened 6 years ago
Looks like you forget to connect to HBase
Configuration hadoopConf = HBaseConfiguration.create();
Connection connection = ConnectionFactory.createConnection(hadoopConf);
See testBulkPut in https://github.com/apache/hbase/blob/master/hbase-spark/src/test/java/org/apache/hadoop/hbase/spark/TestJavaHBaseContext.java
As I said, get and put are working. Without connecting to hbase, how get and put can work?
As suggested on stackoverflow, it seems that the issue was that I was using apache hbase spark api, which is built for hbase 2.x, but we have hbase 1.x deployed. I got suggestion to use api built for 1.x by cloudera, but I did not tried that, neither did I try installing hbase 2.x. Will do that soon.
But any further suggestions are welcome...
@Mahesha999 have you solve this problem ?
I was trying out hbase spark distributed scan example.
My simple code looks like this:
I am getting following exception:
I also tried bulk get and put examples and they are working correctly. So I was guessing whats going wrong with bulk scan example.
Well, I know this question might be somewhat unfit here as its about apache hbase spark, but not that of hortonworks, but I am still posting it in the hope of getting some clue about what might be going wrong.