slfan1989 opened a new pull request, #9065:
URL: https://github.com/apache/hudi/pull/9065
### Change Logs
JIRA: [HUDI-6451]. Randomly obtain a path in
HoodieMemoryConfig#getDefaultSpillableMapBasePath.
The HoodieMemoryConfig#getDefaultSpillableMapBasePath method retrieves a
path from YARN's LOCAL_DIRS environment variable. However, the order of
LOCAL_DIRS concatenation in YARN is typically fixed, resulting in the
DefaultSpillableMapBasePath being a fixed value. Considering the disk load
perspective, we should randomize the selection of a path from the array.
In typical scenarios, YARN's NodeManager (NM) with five disks, namely
`/nm1/localdir`, `/nm2/localdir`, `/nm3/localdir`, `/nm4/localdir`, and
`/nm5/localdir`, would choose `/nm1/localdir` as the preferred option.
We should randomly choose a disk.
### Impact
The disk selection strategy has been improved to ensure the availability of
multiple disks.
### Risk level (write none, low medium or high below)
none.
### Documentation Update
_Describe any necessary documentation update if there is any new feature,
config, or user-facing change_
- _The config description must be updated if new configs are added or the
default value of the configs are changed_
- _Any new feature or user-facing change requires updating the Hudi website.
Please create a Jira ticket, attach the
ticket number here and follow the
[instruction](https://hudi.apache.org/contribute/developer-setup#website) to
make
changes to the website._
### Contributor's checklist
- [ ] Read through [contributor's
guide](https://hudi.apache.org/contribute/how-to-contribute)
- [ ] Change Logs and Impact were stated clearly
- [ ] Adequate tests were added if applicable
- [ ] CI passed
--
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]