Skip to content

Drop HBase from spark-conventions for now - #312

Merged
em3s merged 1 commit into
mainfrom
build/drop-hbase-from-spark-conventions
May 8, 2026
Merged

em3s merged 1 commit into
mainfrom
build/drop-hbase-from-spark-conventions

Conversation

@em3s

@em3s em3s commented May 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

While working on #311, Spark JSON / Parquet readers failed with NoSuchMethodError: FileSystem.openFile. Root cause: hbase-shaded-{client,mapreduce} ship Hadoop 2.x at org.apache.hadoop.*, masking Spark 3.4's Hadoop 3.3.4. No current spark-conventions consumer uses HBase, so drop it from the convention.

Re-adding is TBD — likely non-shaded hbase-client or compileOnly + submit-time --jars once a Spark+HBase job needs it.

Changes

  • Remove hbase-shaded-{client,mapreduce} from SparkConventionsPlugin

How to Test

  • ./gradlew build

AI Assistance

  • This PR was written largely with AI assistance.
    • Tool / model: Claude Code (Opus 4.7)

@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. maintenance Maintenance work. size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels May 8, 2026
@em3s
em3s force-pushed the build/drop-hbase-from-spark-conventions branch 2 times, most recently from b1d1377 to c6be4ed Compare May 8, 2026 06:10
@em3s em3s changed the title build(conventions): drop HBase from spark-conventions Defer HBase dependencies from spark-conventions May 8, 2026
The Spark conventions plugin pulled in hbase-shaded-{client,mapreduce}
as `implementation`, but the shaded jars bundle Hadoop 2.x classes at
the `org.apache.hadoop.*` namespace (incomplete shading), masking the
Hadoop 3.3.4 classes Spark 3.4 expects and breaking JSON / Parquet
readers with NoSuchMethodError on `FileSystem.openFile`.

HBase will be re-introduced to the convention when the first Spark+HBase
job needs it, resolving the Hadoop 3 classpath conflict at that point.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@em3s
em3s force-pushed the build/drop-hbase-from-spark-conventions branch from c6be4ed to 1f42c95 Compare May 8, 2026 06:11
@em3s em3s changed the title Defer HBase dependencies from spark-conventions Drop HBase from spark-conventions for now May 8, 2026
@em3s

em3s commented May 8, 2026

Copy link
Copy Markdown
Contributor Author

HBase client is still required — deferring, not dropping. Merging.

@em3s
em3s merged commit 24b7c02 into main May 8, 2026
2 checks passed
@em3s
em3s deleted the build/drop-hbase-from-spark-conventions branch May 8, 2026 06:13
@em3s em3s mentioned this pull request May 8, 2026
1 task done
@em3s em3s self-assigned this May 14, 2026
em3s added a commit that referenced this pull request May 15, 2026
PR #312 removed HBase from SparkConventionsPlugin, but PR #309
re-added the same five lines. The re-added hbase-shaded-client and
hbase-shaded-mapreduce jars shadow Hadoop's FileSystem on the
pipeline test classpath, breaking Spark tests on CI.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Maintenance work. size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant