Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-43196][YARN] Replace reflection w/ direct calling for `Contain…
…erLaunchContext#setTokensConf` ### What changes were proposed in this pull request? This pr replace reflection with direct calling for `ContainerLaunchContext#setTokensConf` in `o.a.s.deploy.yarn.Client#setTokenConf` function. ### Why are the changes needed? SPARK-37205 uses reflection to call `ContainerLaunchContext#setTokensConf` for compatibility with Hadoop 2.7, since SPARK-42452 removed support for Hadoop2, we can call it directly instead of using reflection. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GA. Closes apache#40855 from LuciferYang/SPARK-43196. Authored-by: yangjie01 <[email protected]> Signed-off-by: Chao Sun <[email protected]>
- Loading branch information