Error creating an Hbase table on a kerberized cluster

Symptoms

When creating a table in Hbase on a kerberized cluster, you may encounter the following error.

 

Exception in component tHBaseOutput_1
org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations
at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:312)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:156)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:60)
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:200)
at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:326)
at org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java:301)
at org.apache.hadoop.hbase.client.ClientScanner.initializeScannerInConstruction(ClientScanner.java:166)
at org.apache.hadoop.hbase.client.ClientScanner.<init>(ClientScanner.java:161)
at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:794)
at org.apache.hadoop.hbase.MetaTableAccessor.fullScan(MetaTableAccessor.java:602)
at org.apache.hadoop.hbase.MetaTableAccessor.tableExists(MetaTableAccessor.java:366)
at org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:405)
at org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:415)
at sps_local.kerberos_hbase__write_testing_0_1.kerberos_hbase__write_testing.tFixedFlowInput_1Process(kerberos_hbase__write_testing.java:540)
at sps_local.kerberos_hbase__write_testing_0_1.kerberos_hbase__write_testing.runJobInTOS(kerberos_hbase__write_testing.java:1076)
at sps_local.kerberos_hbase__write_testing_0_1.kerberos_hbase__write_testing.main(kerberos_hbase__write_testing.java:916)

 

 

Diagnosis

This usually happens due to an incorrect value for the property zookeeper.znode.parent within the hbase-site.xml file.

 

 

Solution

Ensure that the correct value is defined for zookeeper.znode.parent in the hbase-site.xml file. Normally it should be similar to /hbase-unsecure or /hbase-secure.

Note: For a kerberized cluster, the value should be /hbase-secure.

Version history
Revision #:
4 of 4
Last update:
‎10-27-2017 06:51 PM
Updated by:
 
Contributors