Repository navigation
Conversation
### Motivation The filesystem (Hadoop) tiered-storage offloader NAR bundles hadoop-common and its transitive dependencies, adding ~50MB to the base Pulsar Docker image. The vast majority of deployments use the jcloud offloader (S3/GCS/Azure) or no offloader at all, so this is dead weight in the default image. ### Modifications Remove `tiered-storage-file-system-*.nar` from the offloader staging stage of both the Alpine (`Dockerfile`) and Wolfi (`Dockerfile.wolfi`) image builds, so it never reaches the final image. The jcloud offloader is unaffected. The filesystem offloader is still built and shipped in the `apache-pulsar-offloaders-*-bin.tar.gz` distribution tarball, so users who rely on local-disk/HDFS offload can add the NAR back into `/pulsar/offloaders`.
The filesystem offloader NAR is excluded from the base Pulsar image, but the filesystem offload integration tests (TestFileSystemOffload, TestOffloadDeletionFS) require it. Layer it back into the pulsar-test-latest-version image: resolve the `tiered-storage-file-system` NAR via a nar-typed configuration, stage it into the build context, and COPY it into /pulsar/offloaders/.
lhotari
approved these changes
Jun 24, 2026
dao-jun
approved these changes
Jun 24, 2026
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.
Motivation
The filesystem (Hadoop) tiered-storage offloader NAR bundles
hadoop-commonand its transitive dependencies, adding ~50MB to the base Pulsar Docker image. The vast majority of deployments use the jcloud offloader (S3/GCS/Azure) or no offloader at all, so this is dead weight in the default image.Modifications
tiered-storage-file-system-*.narfrom the offloader staging stage of both the Alpine (Dockerfile) and Wolfi (Dockerfile.wolfi) base image builds, so it never reaches the final image. The jcloud offloader is unaffected.pulsar-test-latest-versionintegration-test image, since the filesystem offload integration tests (TestFileSystemOffload,TestOffloadDeletionFS) require it. The NAR is resolved via anar-typed configuration, staged into the build context, and copied into/pulsar/offloaders/.The filesystem offloader is still built and shipped in the
apache-pulsar-offloaders-*-bin.tar.gzdistribution tarball, so users who rely on local-disk/HDFS offload can add the NAR back into/pulsar/offloaders.Verifying this change
This is a build/packaging-only change. Verified by inspecting the produced image contents and the filesystem offload integration tests, which run against the test image that overlays the NAR.