Reputation: 7356
Is there any way to provide resources basing on the stages from the EXPLAIN query.
Upvotes: 1
Views: 2382
Reputation: 9067
AFAIK the only things you can set are:
set mapred.reduce.tasks=**
(as long as it makes sense) set hive.exec.reducers.max=**
+ hint for computing the actual number set hive.exec.reducers.bytes.per.reducer=*****
set mapreduce.map.memory.mb=**
+ set mapreduce.map.java.opts=-XMX**
<~80% of total for heap>set mapreduce.reduce.memory.mb=**
+ set mapreduce.reduce.java.opts=-XMX**
<~80% of total for heap>set hive.tez.container.size=**
+ set hive.tez.java.opts=-XMX**
<~80% of total for heap>Note that if your query shows 3 Map steps and 2 Reduce steps, the settings will apply to all steps...
Reference : Hive documentation and that post for instance
Upvotes: 3