lasdf1234 opened a new issue, #14811: URL: https://github.com/apache/gravitino/issues/14811
### What would you like to be improved? Several Iceberg built-in jobs each maintain their own `printUsage()` with inconsistent format (long Required/Optional/Examples vs one-line usage; some use `System.err`, orphan uses `LOG.error`). `IcebergExpireSnapshotsJob` and `IcebergRewriteDataFilesJob` still claim that `--spark-conf` cannot override catalog/extensions/app-name configs, which does not match `IcebergJobUtils.filterCustomSparkConfigs` (see #13113). ### How should we improve? - Add a shared usage builder in `IcebergJobUtils` (fixed structure: Usage / Required / Optional / Examples; always print to `System.err`) - Have each job's `printUsage` (expire, rewrite-data, rewrite-manifests, orphan, update-stats) only supply job-specific option lines - Align the `--spark-conf` note with `filterCustomSparkConfigs` (master/deployMode when set by spark-submit, and `spark.kubernetes.*` are ignored) — do **not** claim catalog/extensions are blocked (CLI needs catalog registration via `spark-conf`) - Remove the two misleading Note lines as part of this cleanup Related: supersedes the docs/usage part of #13113 without hard-blocking catalog/extensions keys. -- 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]
