You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "goanpeca (via GitHub)" <gi...@apache.org> on 2026/07/30 19:58:59 UTC
[PR] docs(hudi-notebooks): note S3A works with any S3-compatible object store [hudi]
goanpeca opened a new pull request, #19423:
URL: https://github.com/apache/hudi/pull/19423
### Describe the issue this Pull Request addresses
The `hudi-notebooks` Docker Compose environment ships MinIO as its object store, and the README only documents that setup. Nothing states that the storage layer is the Hadoop S3A connector, so it is not obvious that the same environment can point at Amazon S3 or any other S3-compatible store by changing configuration, or which settings need to change.
### Summary and Changelog
Docs-only addition to `hudi-notebooks/README.md`, as a new "Using another S3-compatible object store" subsection under Configuration:
- state that reads and writes go through the Hadoop S3A connector, so the same `fs.s3a.*` settings apply to Amazon S3 or a compatible provider (Backblaze B2, Cloudflare R2, MinIO)
- point to `conf/hadoop/core-site.xml` and the matching Spark/Hive configs as the files to edit, with a placeholder `fs.s3a.endpoint` / access key / secret key / `path.style.access` snippet
- note that Amazon S3 uses the region-default endpoint when `fs.s3a.endpoint` is omitted, while most other providers need an explicit endpoint and `fs.s3a.path.style.access=true`
### Impact
None. Documentation only, no code, config, or behavior changes. The bundled demo still defaults to MinIO.
### Risk Level
none
### Documentation Update
This PR is itself the documentation update; only `hudi-notebooks/README.md` changes. No website update is needed since no new feature or configuration is introduced.
### Contributor's checklist
- [x] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
- [x] Enough context is provided in the sections above
- [ ] Adequate tests were added if applicable (not applicable; documentation-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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] docs(hudi-notebooks): note S3A works with any S3-compatible object store [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #19423:
URL: https://github.com/apache/hudi/pull/19423#issuecomment-5135796695
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "41234d64c3fd6ca1566a662cceecbc95a55a96f7",
"status" : "PENDING",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=15868",
"triggerID" : "41234d64c3fd6ca1566a662cceecbc95a55a96f7",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 41234d64c3fd6ca1566a662cceecbc95a55a96f7 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=15868)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] docs(hudi-notebooks): note S3A works with any S3-compatible object store [hudi]
Posted by "hudi-agent (via GitHub)" <gi...@apache.org>.
hudi-agent commented on code in PR #19423:
URL: https://github.com/apache/hudi/pull/19423#discussion_r3716153827
##########
hudi-notebooks/README.md:
##########
@@ -79,6 +79,40 @@ This project provides a ready-to-use Docker Compose environment for running Apac
- Spark, Hive, and Hudi configs are in `conf/` and automatically copied into containers.
- S3 access keys and endpoints are set for MinIO and referenced in Spark/Hive configs.
+### Using another S3-compatible object store
+
+Hudi reads and writes through the Hadoop S3A connector, so the same `fs.s3a.*`
+settings work against any S3-compatible object store: Amazon S3, or a compatible
+provider such as Backblaze B2, Cloudflare R2, or MinIO. This demo points
+`fs.s3a.endpoint` at the bundled MinIO service; to target a different store,
+edit `conf/hadoop/core-site.xml` (and the matching Spark/Hive configs) with that
+provider's endpoint and credentials:
+
+```xml
+<property>
+ <name>fs.s3a.endpoint</name>
+ <!-- Amazon S3: https://s3.<region>.amazonaws.com
+ any other provider: its S3 endpoint URL -->
+ <value>https://<s3-endpoint></value>
+</property>
Review Comment:
🤖 The example uses a scheme-prefixed endpoint (`https://<s3-endpoint>` / `https://s3.<region>.amazonaws.com`). Whether `fs.s3a.endpoint` should include the `https://` scheme depends on the Hadoop/AWS SDK version bundled here: with the older AWS SDK v1 (Hadoop 3.3.x and earlier) `fs.s3a.endpoint` expected a bare host (e.g. `s3.<region>.amazonaws.com`) with TLS controlled by `fs.s3a.connection.ssl.enabled`, whereas AWS SDK v2 (Hadoop 3.4+) accepts a full URI. Could you confirm which Hadoop version the notebooks image ships and adjust the endpoint format accordingly so the example is runnable as written?
<sub><i>⚠️ AI-generated; verify before applying. React 👍/👎 to flag quality.</i></sub>
##########
hudi-notebooks/README.md:
##########
@@ -79,6 +79,40 @@ This project provides a ready-to-use Docker Compose environment for running Apac
- Spark, Hive, and Hudi configs are in `conf/` and automatically copied into containers.
- S3 access keys and endpoints are set for MinIO and referenced in Spark/Hive configs.
+### Using another S3-compatible object store
+
+Hudi reads and writes through the Hadoop S3A connector, so the same `fs.s3a.*`
+settings work against any S3-compatible object store: Amazon S3, or a compatible
+provider such as Backblaze B2, Cloudflare R2, or MinIO. This demo points
+`fs.s3a.endpoint` at the bundled MinIO service; to target a different store,
+edit `conf/hadoop/core-site.xml` (and the matching Spark/Hive configs) with that
+provider's endpoint and credentials:
+
+```xml
+<property>
+ <name>fs.s3a.endpoint</name>
+ <!-- Amazon S3: https://s3.<region>.amazonaws.com
+ any other provider: its S3 endpoint URL -->
+ <value>https://<s3-endpoint></value>
+</property>
+<property>
+ <name>fs.s3a.access.key</name>
+ <value><access-key></value>
+</property>
+<property>
+ <name>fs.s3a.secret.key</name>
+ <value><secret-key></value>
+</property>
+<property>
+ <name>fs.s3a.path.style.access</name>
+ <value>true</value>
Review Comment:
🤖 The snippet sets `fs.s3a.path.style.access=true` unconditionally, but the closing paragraph correctly says Amazon S3 does not need it. Path-style access can actually break access to Amazon S3 buckets (which default to virtual-hosted style), so a reader who copies this block wholesale for AWS may hit failures. It might help to note in the snippet's comment that `path.style.access=true` applies to MinIO/most other providers and should be omitted (or set to `false`) for Amazon S3.
<sub><i>⚠️ AI-generated; verify before applying. React 👍/👎 to flag quality.</i></sub>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] docs(hudi-notebooks): note S3A works with any S3-compatible object store [hudi]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #19423:
URL: https://github.com/apache/hudi/pull/19423#discussion_r3716034550
##########
hudi-notebooks/README.md:
##########
@@ -79,6 +79,40 @@ This project provides a ready-to-use Docker Compose environment for running Apac
- Spark, Hive, and Hudi configs are in `conf/` and automatically copied into containers.
- S3 access keys and endpoints are set for MinIO and referenced in Spark/Hive configs.
+### Using another S3-compatible object store
+
+Hudi reads and writes through the Hadoop S3A connector, so the same `fs.s3a.*`
+settings work against any S3-compatible object store: Amazon S3, or a compatible
+provider such as Backblaze B2, Cloudflare R2, or MinIO. This demo points
+`fs.s3a.endpoint` at the bundled MinIO service; to target a different store,
+edit `conf/hadoop/core-site.xml` (and the matching Spark/Hive configs) with that
+provider's endpoint and credentials:
+
+```xml
+<property>
+ <name>fs.s3a.endpoint</name>
+ <!-- Amazon S3: https://s3.<region>.amazonaws.com
+ any other provider: its S3 endpoint URL -->
+ <value>https://<s3-endpoint></value>
+</property>
Review Comment:
The placeholder `<s3-endpoint>` in the `<value>` element is not valid XML (it will be interpreted as a nested tag if copied into `core-site.xml`). Consider using a plain placeholder string instead so the snippet can be copy/pasted safely.
This issue also appears in the following locations of the same file:
- line 100
- line 104
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] docs(hudi-notebooks): note S3A works with any S3-compatible object store [hudi]
Posted by "voonhous (via GitHub)" <gi...@apache.org>.
voonhous commented on PR #19423:
URL: https://github.com/apache/hudi/pull/19423#issuecomment-5156387379
Is this ready for review?
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] docs(hudi-notebooks): note S3A works with any S3-compatible object store [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #19423:
URL: https://github.com/apache/hudi/pull/19423#issuecomment-5135747015
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "41234d64c3fd6ca1566a662cceecbc95a55a96f7",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "41234d64c3fd6ca1566a662cceecbc95a55a96f7",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 41234d64c3fd6ca1566a662cceecbc95a55a96f7 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] docs(hudi-notebooks): note S3A works with any S3-compatible object store [hudi]
Posted by "voonhous (via GitHub)" <gi...@apache.org>.
voonhous merged PR #19423:
URL: https://github.com/apache/hudi/pull/19423
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] docs(hudi-notebooks): note S3A works with any S3-compatible object store [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #19423:
URL: https://github.com/apache/hudi/pull/19423#issuecomment-5136614676
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "41234d64c3fd6ca1566a662cceecbc95a55a96f7",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=15868",
"triggerID" : "41234d64c3fd6ca1566a662cceecbc95a55a96f7",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 41234d64c3fd6ca1566a662cceecbc95a55a96f7 Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=15868)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] docs(hudi-notebooks): note S3A works with any S3-compatible object store [hudi]
Posted by "goanpeca (via GitHub)" <gi...@apache.org>.
goanpeca commented on PR #19423:
URL: https://github.com/apache/hudi/pull/19423#issuecomment-5184372947
Yes, ready for review, thanks @voonhous. Marked it out of draft.
It is a docs-only change to the notebook configuration section: the existing `s3a` settings already work against any store implementing the S3 API once `fs.s3a.endpoint` is set, and the note makes that explicit alongside the existing Amazon S3 guidance. No code and no default behavior changes.
Companion PR for the website source is #19424 on `asf-site`.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] docs(hudi-notebooks): note S3A works with any S3-compatible object store [hudi]
Posted by "voonhous (via GitHub)" <gi...@apache.org>.
voonhous commented on code in PR #19423:
URL: https://github.com/apache/hudi/pull/19423#discussion_r3877842134
##########
hudi-notebooks/README.md:
##########
@@ -79,6 +79,40 @@ This project provides a ready-to-use Docker Compose environment for running Apac
- Spark, Hive, and Hudi configs are in `conf/` and automatically copied into containers.
- S3 access keys and endpoints are set for MinIO and referenced in Spark/Hive configs.
+### Using another S3-compatible object store
+
+Hudi reads and writes through the Hadoop S3A connector, so the same `fs.s3a.*`
+settings work against any S3-compatible object store: Amazon S3, or a compatible
+provider such as Backblaze B2, Cloudflare R2, or MinIO. This demo points
+`fs.s3a.endpoint` at the bundled MinIO service; to target a different store,
+edit `conf/hadoop/core-site.xml` (and the matching Spark/Hive configs) with that
+provider's endpoint and credentials:
+
+```xml
+<property>
+ <name>fs.s3a.endpoint</name>
+ <!-- Amazon S3: https://s3.<region>.amazonaws.com
+ any other provider: its S3 endpoint URL -->
+ <value>https://<s3-endpoint></value>
+</property>
Review Comment:
Done in 6b4a280: the three values are plain placeholder text now (https://your-s3-endpoint.example.com, ACCESS_KEY, SECRET_KEY) and the block parses as XML.
##########
hudi-notebooks/README.md:
##########
@@ -79,6 +79,40 @@ This project provides a ready-to-use Docker Compose environment for running Apac
- Spark, Hive, and Hudi configs are in `conf/` and automatically copied into containers.
- S3 access keys and endpoints are set for MinIO and referenced in Spark/Hive configs.
+### Using another S3-compatible object store
+
+Hudi reads and writes through the Hadoop S3A connector, so the same `fs.s3a.*`
+settings work against any S3-compatible object store: Amazon S3, or a compatible
+provider such as Backblaze B2, Cloudflare R2, or MinIO. This demo points
+`fs.s3a.endpoint` at the bundled MinIO service; to target a different store,
+edit `conf/hadoop/core-site.xml` (and the matching Spark/Hive configs) with that
+provider's endpoint and credentials:
+
+```xml
+<property>
+ <name>fs.s3a.endpoint</name>
+ <!-- Amazon S3: https://s3.<region>.amazonaws.com
+ any other provider: its S3 endpoint URL -->
+ <value>https://<s3-endpoint></value>
+</property>
+<property>
+ <name>fs.s3a.access.key</name>
+ <value><access-key></value>
+</property>
+<property>
+ <name>fs.s3a.secret.key</name>
+ <value><secret-key></value>
+</property>
+<property>
+ <name>fs.s3a.path.style.access</name>
+ <value>true</value>
Review Comment:
Agreed on the inconsistency: 6b4a280 adds a comment on that property saying MinIO and most other providers need it and Amazon S3 does not, mirroring the comment on the endpoint property. One correction: Amazon S3 still accepts path-style requests, so leaving it at true there is unnecessary rather than broken; the comment says to leave it out.
##########
hudi-notebooks/README.md:
##########
@@ -79,6 +79,40 @@ This project provides a ready-to-use Docker Compose environment for running Apac
- Spark, Hive, and Hudi configs are in `conf/` and automatically copied into containers.
- S3 access keys and endpoints are set for MinIO and referenced in Spark/Hive configs.
+### Using another S3-compatible object store
+
+Hudi reads and writes through the Hadoop S3A connector, so the same `fs.s3a.*`
+settings work against any S3-compatible object store: Amazon S3, or a compatible
+provider such as Backblaze B2, Cloudflare R2, or MinIO. This demo points
+`fs.s3a.endpoint` at the bundled MinIO service; to target a different store,
+edit `conf/hadoop/core-site.xml` (and the matching Spark/Hive configs) with that
+provider's endpoint and credentials:
+
+```xml
+<property>
+ <name>fs.s3a.endpoint</name>
+ <!-- Amazon S3: https://s3.<region>.amazonaws.com
+ any other provider: its S3 endpoint URL -->
+ <value>https://<s3-endpoint></value>
+</property>
Review Comment:
Runnable as written. The images ship Hadoop 3.3.4 (Dockerfile.spark), 3.4.1 (Dockerfile.spark4) and hadoop-aws 3.1.0 (Dockerfile.hive), and the bundled conf/hadoop/core-site.xml already uses a scheme-prefixed endpoint (http://minio:9000) against all of them. On SDK v1, DefaultS3ClientFactory.createEndpointConfiguration passes fs.s3a.endpoint through RuntimeHttpUtils.toUri, which takes a full URI and only prepends a scheme when there is none; SDK v2's getS3Endpoint does the same. No 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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org