I am running hive query as below
Select count(*),group_name from table_name group by group_name;
Status: Running (Executing on YARN cluster with App id XXXX)
--------------------------------------------------------------------------------
VERTICES STATUS TOTAL COMPLETED RUNNING PENDING FAILED KILLED
--------------------------------------------------------------------------------
Map 1 .......... SUCCEEDED 54 54 0 0 0 0
Reducer 2 ...... SUCCEEDED 13 13 0 0 0 0
--------------------------------------------------------------------------------
VERTICES: 02/02 [==========================>>] 100% ELAPSED TIME: 24.93 s
--------------------------------------------------------------------------------
OK
Result
Time taken: 26.786 seconds, Fetched: 10 row(s)
The above timings look accurate when there is map reduce involved. But when I am running a simple query as below
select group_name from table_name
Time taken: 0.771 seconds, Fetched: 14 row(s)
The time above is not correct.
Also any idea how to measure query time more accurately will be greatly appreciated.
Thanks in advance