Support Questions

Find answers, ask questions, and share your expertise

Estimate run time of hive query

Is there anyway to find out how long does a hive query take to get completed?

1 ACCEPTED SOLUTION

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).

View solution in original post

4 REPLIES 4

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).

Thanks Predrag Minovic. One more question is there way to check the what are the queries executed through ambari or admin console?

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!

Hi @Bala Vignesh N V, please consider accepting my answer to help us manage answered questions. Tnx!

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.