While trying to put to HBase through Java API, NoServerForRegionException is getting thrown.
Code Snipplet :
Put rowData;
rowData.add(Bytes.toBytes(columnfamilyName),
Bytes.toBytes(key), Bytes.toBytes(val));
table.put(rowData);
table.put(rowData);
The following error is appearing.
Hbase:org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for ,,99999999999999 after 10 tries.>
From the command line using HBase Shell, if we try use put command, the same is working fine.
Also from the zookeeper logs, it seems that it is able to connect to HBase, and after which teh exception is getting thrown
Tried in IBM BigInsights Distribution.
Any thoughts on how to overcome this is highly appreciated.
Thanks for your time.
EDit:
I am invoking this from a web server(Hosted in a different machine in same network as that of BigInsights Cluster) by specifying the ip and quorom details.