lasdf1234 opened a new issue, #14807:
URL: https://github.com/apache/gravitino/issues/14807

   ### What would you like to be improved?
   
   Following `docs/table-maintenance-service/optimizer.md` (and the 
CLI/configuration siblings) against a **secured** deploy (basic auth + Iceberg 
REST on object storage) requires several adaptations that the walkthrough does 
not state. Operators who copy the local `file:///` examples literally hit auth 
/ warehouse / credential failures before they reach a successful rewrite.
   
   Gaps found while running the walkthrough end-to-end:
   
   1. **CLI → Gravitino auth** — 
`gravitino.optimizer.auth.type|username|password` (or updater-options aliases) 
are required when the server enables basic auth. Without them, 
`submit-strategy-jobs` fails with unauthorized / “credentials did not support”. 
The walkthrough conf sample only sets URI/metalake.
   2. **IRC `warehouse_location`** — for REST catalogs this must be the 
**Gravitino catalog name** (for example `catalog_iceberg_s3`), not an 
`s3://...` URI. Using the S3 URI yields `NoSuchWarehouse`.
   3. **S3 / object-store data plane** — Spark writes/reads need 
`spark.sql.catalog.<cat>.header.X-Iceberg-Access-Delegation=vended-credentials` 
(plus IRC `rest.auth.*`). Without vended credentials, inserts fail on the AWS 
credential chain.
   4. **Direct `runJob` for `builtin-iceberg-rewrite-data-files`** — 
`JobManager` requires `strategy`, `sort_order`, and `where_clause` in `jobConf` 
even when empty. Omitting them returns 400. The strategy adapter fills these; 
docs’ manual `jobConf` examples for rewrite do not always call this out.
   5. **Non-empty rewrite** — Iceberg `min-input-files` (default 5) means one 
file per partition yields `Rewritten data files: 0` with a still-successful 
job. The “N greater than zero” check needs multiple small files per partition 
(or explicit options).
   
   The page also concentrates the end-to-end walkthrough on compaction only. 
Manifest rewrite, snapshot expiry, and orphan cleanup deserve their own task 
sections that share common secured-cluster prerequisites.
   
   ### How should we improve?
   
   Update the walkthrough / configuration / troubleshooting pages to:
   
   - Restructure `optimizer.md` so each built-in maintenance task has its own 
section (compaction, manifest rewrite, snapshot expiry, orphan cleanup), with 
shared secured-cluster prerequisites stated once.
   - Show a secured-cluster CLI conf snippet with `gravitino.optimizer.auth.*` 
and IRC `rest.auth.*` (+ vended-credentials for object storage).
   - State explicitly that REST `warehouse_location` is the catalog name for 
IRC (not an `s3://` URI).
   - Document the required rewrite `jobConf` placeholders (`strategy` / 
`sort_order` / `where_clause`, empty string OK).
   - Clarify the “Rewritten data files: N > 0” precondition (enough input files 
/ `min-input-files`).
   
   Documentation only; no product code change required for this issue.


-- 
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]

Reply via email to