okumin opened a new pull request, #4404:
URL: https://github.com/apache/hive/pull/4404

   ### What changes were proposed in this pull request?
   
   Let Hive respect `tez.shuffle-vertex-manager.min-src-fraction` and 
`tez.shuffle-vertex-manager.max-src-fraction` when auto reducer parallelism is 
enabled. Currently, we don't have any methods to configure the parameters.
   
   https://issues.apache.org/jira/browse/HIVE-24485
   
   ### Why are the changes needed?
   
   We sometimes want to tune the parameters so that Tez can finalize the number 
of reducers with a more accurate estimation. For example, in extreme cases 
where the previous stage is very skewed, we may want to configure both params 
at `1.0`.
   
   ### Does this PR introduce _any_ user-facing change?
   
   The behavior will change if a user configures 
`tez.shuffle-vertex-manager.{min,max}-src-fraction`.
   
   ### How was this patch tested?
   
   ```
   zookage@client-node-0:~$ beeline -e '
   > SET hive.tez.auto.reducer.parallelism=true;
   > SET hive.tez.min.partition.factor=1.0; -- enforce auto-parallelism
   > SET tez.shuffle-vertex-manager.min-src-fraction=0.55;
   > SET tez.shuffle-vertex-manager.max-src-fraction=0.95;
   > CREATE TABLE mofu (name string);
   > INSERT INTO mofu (name) VALUES ('12345');
   > SELECT name, count(*) FROM mofu GROUP BY name;
   > '
   ```
   
   ```
   2023-06-11 15:50:57,287 [INFO] [Dispatcher thread {Central}] 
|vertexmanager.ShuffleVertexManagerBase|: Settings minFrac: 0.55 maxFrac: 0.95 
auto: true desiredTaskIput: 256000000
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to