docs/pyspark4.x: fix spark-submit GCS config for Spark 4.2#186
Merged
Conversation
…park 4.2 Hadoop 3.5.0's core-default.xml sets fs.gs.block.size=64m, which gcs-connector <=4.0.4/3.1.18 fails to parse via Configuration.getLong(), causing a NumberFormatException on any gs:// read. Document the --conf workaround and the upstream fix (GoogleCloudDataproc/hadoop-connectors@2dd981a, PR #1731). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ty matrix Spark 4.2's Docker image bundles Hadoop 3.5.0 (hadoop-client-api-3.5.0.jar), not the 3.4.1 already documented for Spark 4.0.x. Add matrix rows for it and flag the fs.gs.block.size issue affecting both gcs-connector 4.0.x and 3.1.x on that combo. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Document the
fs.gs.block.sizefix needed when runningspark-submitagainst the Spark 4.2 standalone cluster: Hadoop 3.5.0'score-default.xmldefaultsfs.gs.block.size=64m, whichgcs-connector<=4.0.4/3.1.18 fails to parse viaConfiguration.getLong(), causing aNumberFormatExceptionon anygs://read. Add the--conf spark.hadoop.fs.gs.block.size=67108864workaround to the recommended command, with a note pointing to the upstream fix (GoogleCloudDataproc/hadoop-connectors@2dd981a, PR #1731) that hasn't shipped in a release yet.Add Spark 4.2.x / Hadoop 3.5.0 rows to the GCS compatibility matrix, which previously only documented Spark 4.0.x / Hadoop 3.4.1.
Test plan
NumberFormatExceptionwith the documentedspark-submitcommand against the Spark 4.2 standalone cluster.spark-submitwith--conf spark.hadoop.fs.gs.block.size=67108864added resolves the error and the job completes.hadoop-client-api-3.5.0.jar) viadocker exec.🤖 Generated with Claude Code