MaxonT opened a new pull request, #41837: URL: https://github.com/apache/beam/pull/41837
Hey, I added a section to the PortableRunner documentation that explains how to point it at Spark, since issue #23438 says that part is hard to follow. Addresses #23438. This covers only the first part of the issue, the plain-Java instructions. The Java-to-Python cross-language instructions it also asks for are not included here. What changed: `website/www/site/content/en/documentation/runners/spark.md` gets a short Java paragraph and code example after the existing Python portable example. It shows `--runner=PortableRunner`, `--jobEndpoint=localhost:8099` and `--defaultEnvironmentType=LOOPBACK`, and says that `LOOPBACK` is for local testing only. Checks run on this change: - Option names checked against the source: `getJobEndpoint()` at `sdks/java/core/src/main/java/org/apache/beam/sdk/options/PortablePipelineOptions.java:30` and `getDefaultEnvironmentType()` at `:48`; the runner name comes from `runners/portability/java/src/main/java/org/apache/beam/runners/portability/PortableRunnerRegistrar.java:27-31`. The snippet's APIs (`PipelineOptionsFactory.fromArgs`, `Pipeline.create`, `PipelineResult.waitUntilFinish`) exist in `sdks/java/core`. - Website build: from `website/www`, `build_code_samples.sh` and then `HUGO_ENV=production hugo --minify` with Hugo 0.117.0 extended (the version pinned in `website/Dockerfile`). Exit code 0. The new text appears in the rendered `documentation/runners/spark/` page. Not run: - `check-links.sh` and the Docker-based `:websitePreCommit` Gradle task (Docker was not available on the machine used). - No Java pipeline was run against a running JobService. CHANGES.md is not updated because this is a docs-only change. -- 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]
