Skip to main content
Version 3.0

One S3 endpoint
for the whole lakehouse.

Six scenarios: how Ozone is accessed and how to connect Trino, Spark and the lakehouse jobs, the Hive Metastore, Airflow, and ClickHouse, and the notebooks and S3 tools. Each one covers: what changes, the configuration block commented line by line, and where the rest lives, on the consumer's page.

ChartVersion3.0.3TypeapplicationAppVersion2.1.1
CompatibilityKubernetes1.32+OpenShift4.19+Rancher2.10.x+

The tdp-ozone chart publishes the S3 Gateway in an internal Service and, with security on, keeps the administrator key in the ozone-s3-credentials Secret. Each TDP component receives, in its own values file, the address of this Service, a key pair and path-style access, and writes to the buckets through S3 (s3a://). No consumer needs a Kerberos ticket.

Your environment

If you fill in your environment details here, the examples and commands on the page use what you provided. The namespace, the release name and the values file are your choices, not the chart's.

Scenarios​

Endpoint, keys, region, path-style and the warehouse bucket.

Consumers access Ozone through the address of the S3 Gateway Service, with an S3 key pair. All TDP components talk to Ozone only through S3 (s3a://), never through the native Ozone protocol, and all of them need the same things: the S3 Gateway address, a key pair, the region, path-style access (the bucket goes in the URL path, not in the hostname) and a bucket that already exists. Ozone Kerberos, when on, serves only the Ozone daemons: the consumers sign requests with an access key and secret key, with no ticket.

By default, Ozone security is off: the S3 Gateway accepts any non-empty key pair, and the ozone-s3-credentials Secret does not exist. The component charts already carry a default endpoint, shown below.

The following tabs connect each consumer: Trino in scenario 2, Spark, Iceberg and Delta Lake in scenario 3, Hive Metastore in scenario 4, Airflow and ClickHouse in scenario 5, and notebooks and S3 tools in scenario 6.

Endpoint

The <RELEASE_NAME>-s3g-rest Service, on the s3g.service.rest.port port, without TLS inside the cluster. From outside the cluster, the hostname published by the Ingress or the Gateway API.

Keys

With security off (default), any non-empty pair. With it on, those from the ozone-s3-credentials Secret, which exists only in the Ozone namespace, or those of an additional user, issued by the Ozone Manager.

Buckets

The TDP charts keep their data in the warehouse bucket: the Hive Metastore warehouse, the Iceberg and Delta Lake tables and the Spark event logs. Create it before installing those charts.

All consumers on the same S3 Gateway

Ozone security

Your choice changes the commands and passages below.

Ozone · <NAMESPACE>S3S3S3S3S3S3S3Trinohive and iceberg catalogsSparks3a://Iceberg and Delta Lakemaintenance jobsHive Metastorewarehouse on S3Airflow and ClickHouseS3 connectionJupyternotebooksAWS CLI and SDKsboto3, aws s3No keys Secretany non-empty pairS3 Gateway<RELEASE_NAME>-s3g-restBucketswarehouse and yours
  1. Trino. The hive and iceberg catalogs read and write to Ozone through Trino's native S3. It does not need a Kerberos ticket. (tdp-trino.catalogs)
  2. Spark. Writes and reads through S3A, with the endpoint and keys from the core-site.xml generated by the chart. It does not need a Kerberos ticket. (tdp-spark.hadoopConfig)
  3. Iceberg and Delta Lake. The maintenance CronJobs read the endpoint from maintenance.spark.config and the keys from a Secret. It does not need a Kerberos ticket. (maintenance.spark.s3Credentials)
  4. Hive Metastore. With metastore.type s3, the warehouse lives in an Ozone bucket, and not on a local volume. It does not need a Kerberos ticket. (tdp-hive-metastore.metastore.s3)
  5. Airflow and ClickHouse. Each one receives a generic S3 connection, with the address and the keys, in TDP-Settings.s3Connection. It does not need a Kerberos ticket. (TDP-Settings.s3Connection)
  6. Jupyter. The NetworkPolicy of the notebook pods already allows the Ozone ports. It does not need a Kerberos ticket. (tdp-jupyter.singleuser.networkPolicy.egress)
  7. AWS CLI and SDKs. Any S3 client: endpoint, region and the keys. It does not need a Kerberos ticket.
  8. Keys with security off. With security off, the S3 Gateway accepts any non-empty key pair, and the chart creates no keys Secret. Chart default: security off. (tdp-ozone.s3g.auth.secretName)
  9. S3 Gateway. The S3 endpoint for all consumers, in the internal Service <RELEASE_NAME>-s3g-rest. Clients use path-style and the us-east-1 region. Chart default: port in s3g.service.rest.port. (tdp-ozone.s3g.service.rest.port)
  10. Buckets. The TDP charts keep their data in the warehouse bucket: the Hive Metastore warehouse, the Iceberg and Delta Lake tables and the Spark event logs. Create it before installing those charts.

Ozone security: Off (default)

Ozone · <NAMESPACE>S3S3S3S3S3S3S3Trinohive and iceberg catalogsSparks3a://Iceberg and Delta Lakemaintenance jobsHive Metastorewarehouse on S3Airflow and ClickHouseS3 connectionJupyternotebooksAWS CLI and SDKsboto3, aws s3No keys Secretany non-empty pairS3 Gateway<RELEASE_NAME>-s3g-restBucketswarehouse and yours
  1. Trino. The hive and iceberg catalogs read and write to Ozone through Trino's native S3. It does not need a Kerberos ticket. (tdp-trino.catalogs)
  2. Spark. Writes and reads through S3A, with the endpoint and keys from the core-site.xml generated by the chart. It does not need a Kerberos ticket. (tdp-spark.hadoopConfig)
  3. Iceberg and Delta Lake. The maintenance CronJobs read the endpoint from maintenance.spark.config and the keys from a Secret. It does not need a Kerberos ticket. (maintenance.spark.s3Credentials)
  4. Hive Metastore. With metastore.type s3, the warehouse lives in an Ozone bucket, and not on a local volume. It does not need a Kerberos ticket. (tdp-hive-metastore.metastore.s3)
  5. Airflow and ClickHouse. Each one receives a generic S3 connection, with the address and the keys, in TDP-Settings.s3Connection. It does not need a Kerberos ticket. (TDP-Settings.s3Connection)
  6. Jupyter. The NetworkPolicy of the notebook pods already allows the Ozone ports. It does not need a Kerberos ticket. (tdp-jupyter.singleuser.networkPolicy.egress)
  7. AWS CLI and SDKs. Any S3 client: endpoint, region and the keys. It does not need a Kerberos ticket.
  8. Keys with security off. With security off, the S3 Gateway accepts any non-empty key pair, and the chart creates no keys Secret. Chart default: security off. (tdp-ozone.s3g.auth.secretName)
  9. S3 Gateway. The S3 endpoint for all consumers, in the internal Service <RELEASE_NAME>-s3g-rest. Clients use path-style and the us-east-1 region. Chart default: port in s3g.service.rest.port. (tdp-ozone.s3g.service.rest.port)
  10. Buckets. The TDP charts keep their data in the warehouse bucket: the Hive Metastore warehouse, the Iceberg and Delta Lake tables and the Spark event logs. Create it before installing those charts.

Ozone security: On

Ozone · <NAMESPACE>S3S3S3S3S3S3S3Trinohive and iceberg catalogsSparks3a://Iceberg and Delta Lakemaintenance jobsHive Metastorewarehouse on S3Airflow and ClickHouseS3 connectionJupyternotebooksAWS CLI and SDKsboto3, aws s3ozone-s3-credentialsadministrator keyS3 Gateway<RELEASE_NAME>-s3g-restBucketswarehouse and yours
  1. Trino. The hive and iceberg catalogs read and write to Ozone through Trino's native S3. It does not need a Kerberos ticket. (tdp-trino.catalogs)
  2. Spark. Writes and reads through S3A, with the endpoint and keys from the core-site.xml generated by the chart. It does not need a Kerberos ticket. (tdp-spark.hadoopConfig)
  3. Iceberg and Delta Lake. The maintenance CronJobs read the endpoint from maintenance.spark.config and the keys from a Secret. It does not need a Kerberos ticket. (maintenance.spark.s3Credentials)
  4. Hive Metastore. With metastore.type s3, the warehouse lives in an Ozone bucket, and not on a local volume. It does not need a Kerberos ticket. (tdp-hive-metastore.metastore.s3)
  5. Airflow and ClickHouse. Each one receives a generic S3 connection, with the address and the keys, in TDP-Settings.s3Connection. It does not need a Kerberos ticket. (TDP-Settings.s3Connection)
  6. Jupyter. The NetworkPolicy of the notebook pods already allows the Ozone ports. It does not need a Kerberos ticket. (tdp-jupyter.singleuser.networkPolicy.egress)
  7. AWS CLI and SDKs. Any S3 client: endpoint, region and the keys. It does not need a Kerberos ticket.
  8. ozone-s3-credentials Secret. With security on, the chart creates this Secret and fills it with the administrator key, issued by the Ozone Manager, in the aws_access_key_id and aws_secret_access_key keys. Per-application keys are also issued by the Ozone Manager (scenario 4 of the security page). The Secret exists only in the Ozone namespace: a consumer in another namespace receives a copy (scenario 1). Chart default: security off. (tdp-ozone.s3g.auth.secretName)
  9. S3 Gateway. The S3 endpoint for all consumers, in the internal Service <RELEASE_NAME>-s3g-rest. Clients use path-style and the us-east-1 region. Chart default: port in s3g.service.rest.port. (tdp-ozone.s3g.service.rest.port)
  10. Buckets. The TDP charts keep their data in the warehouse bucket: the Hive Metastore warehouse, the Iceberg and Delta Lake tables and the Spark event logs. Create it before installing those charts.
All consumers reach the same S3 Gateway. Switch the security above and see where the keys come from.

The endpoint inside the cluster

Internal S3 endpoint
http://<RELEASE_NAME>-s3g-rest.<NAMESPACE>.svc.cluster.local:9878
The consumer receivesValue
Endpointthe address above
Regionus-east-1
Path-style accesson
TLS on the internal endpointoff
Keysthose from the step below

Any other S3-compatible client connects to Ozone the same way: endpoint, region, path-style and keys.

The component charts already come pointed at the endpoint of the tdp-ozone release in the tdp namespace. When your release or namespace is different, set the endpoint in each consumer.

Default endpoint in the component charts
http://tdp-ozone-s3g-rest.tdp.svc.cluster.local:9878

Get the keys

The key pair the consumer will use.

With security off, the S3 Gateway accepts any non-empty key pair. Use a dummy pair in the consumer. It is not validated. To make the keys count, turn security on: see Security - Apache Ozone.

With security on, use the administrator key, from the ozone-s3-credentials Secret, or a key of the application's own, issued by the Ozone Manager (scenario 4 of the security page):

Terminal input
AWS_ACCESS_KEY_ID=$(kubectl -n <NAMESPACE> get secret ozone-s3-credentials -o jsonpath='{.data.aws_access_key_id}' | base64 -d)
AWS_SECRET_ACCESS_KEY=$(kubectl -n <NAMESPACE> get secret ozone-s3-credentials -o jsonpath='{.data.aws_secret_access_key}' | base64 -d)

In the charts that read a Secret, point to ozone-s3-credentials with the keys aws_access_key_id and aws_secret_access_key.

Copy the Secret to the consumer namespaceOpcional

The ozone-s3-credentials Secret also in the namespace of a consumer that is outside the Ozone namespace.

With security off, the ozone-s3-credentials Secret does not exist, and there is nothing to copy.

The ozone-s3-credentials Secret exists only in the Ozone namespace. For a consumer in another namespace, copy it, and copy it again after each key rotation:

Terminal input
kubectl -n <DEDICATED_NAMESPACE> create secret generic ozone-s3-credentials \
--from-literal=aws_access_key_id="$(kubectl -n <NAMESPACE> get secret ozone-s3-credentials -o jsonpath='{.data.aws_access_key_id}' | base64 -d)" \
--from-literal=aws_secret_access_key="$(kubectl -n <NAMESPACE> get secret ozone-s3-credentials -o jsonpath='{.data.aws_secret_access_key}' | base64 -d)"

It worked when

kubectl -n <DEDICATED_NAMESPACE> get secret ozone-s3-credentials shows the Secret in the consumer namespace.

The components read the key when the pods start: restart the consumer pods after copying or changing the key.

Create the warehouse bucket

The bucket where the TDP charts keep their data, before installing them.

From your machine, through a port-forward to the S3 Gateway, with the AWS CLI configured with the keys from the previous step and the us-east-1 region:

Terminal input
kubectl -n <NAMESPACE> port-forward svc/<RELEASE_NAME>-s3g-rest 9878:9878 &
aws s3 mb s3://warehouse --endpoint-url=http://localhost:9878
aws s3 ls --endpoint-url=http://localhost:9878

It worked when

aws s3 ls lists the warehouse bucket.
If the AWS CLI does not connect or refuses the key

See When something goes wrong.

When something goes wrong​

Troubleshooting

Paste the error message or pick the symptom. The answer comes with the cause, what to do and the command.

  1. Unable to locate credentials or connection refused. Cause: The client has no key configured, or the S3 Gateway is not reachable at the address used. What to do: Check the client keys, the S3 Gateway pod and, from outside the cluster, the Ingress.
  2. SignatureDoesNotMatch. Cause: Clock skew between the client and the pods (the AWS SigV4 signature depends on the time) or an outdated key. What to do: Check the time on the client and on the pods. With Kerberos on, read the key from the ozone-s3-credentials Secret again.
  3. AccessDenied with a valid key. Cause: With security on, the key authenticated, but the user has no ACL on the /s3v volume. Only the administrator gets it automatically. What to do: After kinit, grant the ACL to the key user with addacl, as in scenario 4 of the security page.
  4. AccessDenied or InvalidAccessKeyId after turning Kerberos on. Cause: The client still uses a key that the Ozone Manager did not issue. What to do: Give the client the key from the ozone-s3-credentials Secret or a new key (scenario 4 of the security page) and restart its pods.
  5. Writes fail with HTTP 500 on a single datanode. Cause: The client asks for the STANDARD class, which the S3 Gateway translates into more replicas than a single datanode can hold. Trino asks for STANDARD by default. What to do: In Trino, s3.storage-class=REDUCED_REDUNDANCY in the catalogs (scenario 2). The AWS CLI and Spark S3A do not ask for a class.
  6. Consumers in CreateContainerConfigError (GitOps kit). Cause: The consumers started before the Ozone PostSync Job filled the ozone-s3-credentials Secret. What to do: Wait: they start on their own when the Secret is filled. Pods that were already running with the old keys need a restart.
  7. Another problem. Cause: Start with the state of the pods, the Services and the events of the Ozone namespace. What to do: The events in time order show what keeps the pod from starting.

Next steps​