Created 03-03-2017 09:06 AM
Is there anyway to find out how long does a hive query take to get completed?
Created 03-05-2017 01:18 AM
Well, there is no way to know in advance how long will a query you've never tried before take on your cluster. Besides query complexity and resource requirements it also depends on the size and occupancy of the Yarn queue you are using. Even the same query can take longer the first time to start Tez containers if not already started, or to load data to memory in case of LLAP. You can try to run your representative queries and measure their execution time, after that you will roughly know how long are queries from the same class going to take (again if Yarn queue conditions are about the same).
Created 03-05-2017 01:18 AM
Well, there is no way to know in advance how long will a query you've never tried before take on your cluster. Besides query complexity and resource requirements it also depends on the size and occupancy of the Yarn queue you are using. Even the same query can take longer the first time to start Tez containers if not already started, or to load data to memory in case of LLAP. You can try to run your representative queries and measure their execution time, after that you will roughly know how long are queries from the same class going to take (again if Yarn queue conditions are about the same).
Created 03-06-2017 11:41 AM
Thanks Predrag Minovic. One more question is there way to check the what are the queries executed through ambari or admin console?
Created 03-08-2017 03:09 AM
Sorry for the delay, the best way to check your queries provided it's Hive on Tez, which is pretty much standard these days since it's much faster than Hive on MR, is through Ambari Tez view. You can see the query, start and end time, and DAG details, counters, graphical view of used mappers and reducers, indeed very detailed information. Note that if you run Pig on Tez those queries will appear in the Tez view as well. Give it a try!
Created 03-09-2017 06:08 AM
Hi @Bala Vignesh N V, please consider accepting my answer to help us manage answered questions. Tnx!