New Contributor
Posts: 1
Registered: ‎04-12-2019

view queries and results in logs running from hbase api


I'm planning to use hbase, where i've written code in hbase java api and running query.


Have there any way to check the executed query in logs as well the response from query in logs?



Posts: 1,896
Kudos: 433
Solutions: 303
Registered: ‎07-31-2013

Re: view queries and results in logs running from hbase api

There's no 'single' query tracking in HBase because of its distributed nature (your scan range may boil down into several different regions, hosted and served independently by several different nodes).

Access to data is audited if you enable TRACE level logging on the AccessController class, or if you use Cloudera Navigator Audit Service in your cluster. The audit information will capture the requestor and the kind of request, but not the parameters of the request.

If it is the parameters of your request (such as row ranges, filters, etc.) you're interested in, could you explain what the use-case is for recording it?

Our community is getting a little larger. And a lot better.

Learn More about the Cloudera and Hortonworks community merger planned for late July and early August.