Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-32804][LAUNCHER] Fix run-example command builder bug
### What changes were proposed in this pull request? Bug fix in run-example command builder (as described in [SPARK-32804], run-example failed in standalone-cluster mode): 1. Missing primaryResource arg. 2. Wrong appResource arg. which will affect `SparkSubmit` in Standalone-Cluster mode: https://github.com/apache/spark/blob/32d87c2b595b4aac2d9274424a43697299638f61/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala#L695-L696 and get error at: https://github.com/apache/spark/blob/f55694638d45f34ab91f6f6ec2066cbf7631f4af/core/src/main/scala/org/apache/spark/deploy/ClientArguments.scala#L74-L89 ### Why are the changes needed? Bug: run-example failed in standalone-cluster mode ### Does this PR introduce _any_ user-facing change? Yes. User can run-example in standalone-cluster mode now. ### How was this patch tested? New ut added. Also it's a user-facing bug, so better re-check the real case in [SPARK-32804]. Closes #29653 from KevinSmile/bug-fix-master. Authored-by: KevinSmile <kevinwang013@hotmail.com> Signed-off-by: Sean Owen <srowen@gmail.com>
- Loading branch information