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

How to identify impala query?


How to identify impala query?

New Contributor

We have one requirement - client soft have to pass somehow self id to query and other system read this id from impala logs (sessions or queries).

Is there some query options? We thought to use DEBUG_ACTION for that purpose but cant read it from logs



Re: How to identify impala query?

Master Collaborator

One option is to include it as a comment in the query text (we've used that trick in some cases, and I've seen other Impala users do it).


We did add a CLIENT_IDENTIFIER option in CDH6.2 that can be set by the client. That was originally  intended to identify the driver version but could be used for your purposes -

Don't have an account?
Coming from Hortonworks? Activate your account here