Support Questions

Find answers, ask questions, and share your expertise

Timeout while resource lookup/test connection of hbase from ranger to zookeeper

avatar

just a query , what is the timeout of ranger connection to hbase (through zookeeper) in habse test connection/ resource lookup

1 ACCEPTED SOLUTION

avatar
Super Collaborator

@dsharma

Go to custom ranger-hbase-security section in ambari and add the following. These setting in ranger will help you modify the read and connection timeout. Please try increasing this and see how it goes?

ranger.plugin.hbase.policy.rest.client.connection.timeoutMs=120000

ranger.plugin.hbase.policy.rest.client.read.timeoutMs=30000

View solution in original post

4 REPLIES 4

avatar
Super Guru
@dsharma

Please try enabling debug and check the ranger admin logs for issue. Also check hbase logs for errors if any -

ranger debug -

vi /usr/hdp/current/ranger-admin/ews/webapp/WEB-INF/log4j.xml

Modify - <priority value="info" />

To - <priority value="debug" />

And restart ranger.

Try testing the Hbase repository connection again.

avatar
Super Guru

Please do check open connection limit for zookeeper.

avatar
Master Collaborator

Is the correct hbase-site.xml accessible (on the classpath) ?

Can you pastebin the stack trace when timeout is encountered ?

Which version of HDP are you using ?

Thanks

avatar
Super Collaborator

@dsharma

Go to custom ranger-hbase-security section in ambari and add the following. These setting in ranger will help you modify the read and connection timeout. Please try increasing this and see how it goes?

ranger.plugin.hbase.policy.rest.client.connection.timeoutMs=120000

ranger.plugin.hbase.policy.rest.client.read.timeoutMs=30000