Ozone scan fails with "PERMISSION_DENIED" on volume or bucket access
Ozone scans return PERMISSION_DENIED on Apache Ranger-managed clusters
when the CMA Agent principal lacks read and list access; add
the agent user to the global Ranger Ozone policy.
Symptom
Ozone scan fails with:
OzoneScanException: Error occurred while scanning volume s3v
- Exception message: PERMISSION_DENIED
The CMA Agent log shows an ACL check failure for the
cma-agent user (or the configured Kerberos principal) when listing buckets
or reading volume metadata.
Cause
On clusters where Apache Ranger manages Ozone authorization, native Ozone ACLs (set through
ozone sh volume addacl) are ineffective. Ranger intercepts all access
checks before native ACLs are evaluated, so granting access through ozone sh
has no effect.
The Cloudera Migration Assistant Ozone scanner requires read and
list permissions on volumes, buckets, and keys to inventory the
cluster's Ozone storage.
