shangeyao opened a new pull request, #4383: URL: https://github.com/apache/streampark/pull/4383
## Summary - Add `SparkEnvUtils` to resolve Spark `JAVA_HOME` from `spark-env.sh` - Update `SparkVersion` to detect version from `spark-core_*.jar` / `RELEASE` first, with `spark-submit --version` as fallback - Set Spark job `JAVA_HOME` in `YarnClient` for Yarn submissions - Add unit tests and Spark JDK setup documentation Fixes #4382 ## Test plan - [x] `./mvnw test -pl streampark-common -Dtest=SparkVersionTest,SparkEnvUtilsTest` - [ ] Register Spark 4.x env in Console (JDK 8) and verify version detection - [ ] Submit Spark job on Yarn with custom Spark JDK --- **AI Disclosure** - Model: Claude Opus 4.6 - Platform/Tool: Cursor - Human Oversight: partially reviewed - Prompt Summary: Implement Spark jar-first version parsing optimization from dev branch scan Made with [Cursor](https://cursor.com) -- 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]
