Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

view queries and results in logs running from hbase api

view queries and results in logs running from hbase api

Expert Contributor

Hi

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?

 

 

2 REPLIES 2

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

Master Guru
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?

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

Expert Contributor

Hey Harsh

Thanks for responding.

 

As multiple client are requesting data to hbase, at some point, sometimes user don’t get data, EOF exception or connection interruptions occur.

We are not able to track the record of requested data and size of input and output data sending to end user.

 

Regards

Vinay K