I'm currently running into an issue on my local setup where my application is unable to connect to the hbase table but I'm successfully able to query the table using hbase shell.
I'm using HTable client to make the connection and would expect to get an error after certain retries when it's unable to establish connection. However I'm seeing the code is continuously retrying and not logging any error exception. I had to turn on debug to find the issue. Is there a setting that we could use to throw an exception after certain number of retries? countersTable = new HTable(hbaseConfig, counters) Using HBase Version - 0.94.15 14-04-09 12:11:36 DEBUG HConnectionManager$HConnectionImplementation:1083 - locateRegionInMeta parentTable=.META., metaLocation=null, attempt=0 of 10 failed; retrying after sleep of 1000 because: Unable to find region for counter,,99999999999999 after 10 tries. 14-04-09 12:11:37 DEBUG ZKUtil:1597 - hconnection-0x14547b13745000e Retrieved 50 byte(s) of data from znode /hbase/root-region-server and set watcher; mseakdang.corp.service-now.co... 14-04-09 12:11:37 DEBUG HConnectionManager$HConnectionImplementation:875 - Looked up root region location, connection=org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@300b6421; serverName=mseakdang.corp.service-now.com,60020,1397067169749 14-04-09 12:12:35 DEBUG HConnectionManager$HConnectionImplementation:1083 - locateRegionInMeta parentTable=-ROOT-, metaLocation={region=-ROOT-,,0.70236052, hostname=mseakdang.corp.service-now.com, port=60020}, attempt=0 of 10 failed; retrying after sleep of 1002 because: unknown host: mseakdang.corp.service-now.com 14-04-09 12:12:35 DEBUG ZKUtil:1597 - hconnection-0x14547b13745000e Retrieved 50 byte(s) of data from znode /hbase/root-region-server and set watcher; mseakdang.corp.service-now.co... 14-04-09 12:12:35 DEBUG HConnectionManager$HConnectionImplementation:875 - Looked up root region location, connection=org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@300b6421; serverName=mseakdang.corp.service-now.com,60020,1397067169749 14-04-09 12:12:36 DEBUG HConnectionManager$HConnectionImplementation:1083 - locateRegionInMeta parentTable=.META., metaLocation=null, attempt=0 of 10 failed; retrying after sleep of 1008 because: Unable to find region for counter,,99999999999999 after 10 tries. 14-04-09 12:12:37 DEBUG ZKUtil:1597 - hconnection-0x14547b13745000e Retrieved 50 byte(s) of data from znode /hbase/root-region-server and set watcher; mseakdang.corp.service-now.co... 14-04-09 12:12:37 DEBUG HConnectionManager$HConnectionImplementation:875 - Looked up root region location, connection=org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@300b6421; serverName=mseakdang.corp.service-now.com,60020,1397067169749 14-04-09 12:13:35 DEBUG HConnectionManager$HConnectionImplementation:1083 - locateRegionInMeta parentTable=-ROOT-, metaLocation={region=-ROOT-,,0.70236052, hostname=mseakdang.corp.service-now.com, port=60020}, attempt=0 of 10 failed; retrying after sleep of 1001 because: unknown host: mseakdang.corp.service-now.com 14-04-09 12:13:35 DEBUG ZKUtil:1597 - hconnection-0x14547b13745000e Retrieved 50 byte(s) of data from znode /hbase/root-region-server and set watcher; mseakdang.corp.service-now.co... 14-04-09 12:13:35 DEBUG HConnectionManager$HConnectionImplementation:875 - Looked up root region location, connection=org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@300b6421; serverName=mseakdang.corp.service-now.com,60020,1397067169749 14-04-09 12:13:36 DEBUG HConnectionManager$HConnectionImplementation:1083 - locateRegionInMeta parentTable=.META., metaLocation=null, attempt=1 of 10 failed; retrying after sleep of 1000 because: Unable to find region for counter,,99999999999999 after 10 tries. -- View this message in context: http://apache-hbase.679495.n3.nabble.com/HBase-Unable-to-find-Region-Server-No-Exception-being-thrown-tp4058033.html Sent from the HBase User mailing list archive at Nabble.com.