Reply
Highlighted
New Contributor
Posts: 2
Registered: ‎04-09-2019
Accepted Solution

How can I check the Impala Query Execution Time?

Hello all,

My system administrator wants to check the Impala Query's execution time.

I can check the each fragment's total time in

[Cloudera Manager > Impala > Query > Query details].

But I can't find the total of query execution time.

 

Please anyone tell me where can I check it.

 

Thanks

Cloudera Employee
Posts: 17
Registered: ‎07-25-2018

Re: How can I check the Impala Query Execution Time?

On that Cloudera Manager page, you can click 'Select Attributes' and check the box by 'Duration'.
Now any queries that are displayed will show the query duration in milliseconds.

New Contributor
Posts: 2
Registered: ‎04-09-2019

Re: How can I check the Impala Query Execution Time?

Thanks for reply Andrew,

I found that duration keep increasing while Hue session is opened.

So I guess that 'Duration' is not a exact execution time..

Is it bug?

Cloudera Employee
Posts: 815
Registered: ‎03-23-2015

Re: How can I check the Impala Query Execution Time?

Hi @Mogiking

Hue keeps the query handler open so that it can get back to its result during pagination. This is a feature in Hue, not a bug.

You can find that info from impala PROFILE under Query Timeline section, like below:

Query Timeline
Query submitted: 0ns (0)
Planning finished: 170ms (170000854)
Submit for admission: 172ms (172000864)
Completed admission: 172ms (172000864)
Ready to start on 2 backends: 172ms (172000864)
All 2 execution backends (3 fragment instances) started: 176ms (176000884)
Rows available: 422ms (422002119)
First row fetched: 501ms (501002515)
Unregister query: 509ms (509002555)

You can see detailed information on when data is available.

Cheers
Eric
Cloudera Employee
Posts: 17
Registered: ‎07-25-2018

Re: How can I check the Impala Query Execution Time?

Hi Mogiking,

On the version I was testing (CDH 6.2) the duration looks correct, but the queries do not show up until they are completely closed. I was able to force this from the Impala Daemon Web UI, or by waiting, or by closing hue.

-Andrew