Skip to main content
Version 3.0

S3 storage for TDP,
from the first bucket to the lakehouse.

Six common scenarios, from the first installation to the lakehouse consumers. Each one covers: what the chart already provides, what changes in the cluster, the values file commented line by line, and a step-by-step with verification.

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

The tdp-ozone chart deploys Apache Ozone, an S3-compatible object store: the Ozone Manager, the Storage Container Manager, the datanodes, the S3 Gateway, and Recon, with persistent disk. The TDP lakehouse charts write and read data through the S3 Gateway. For the architecture, see Apache Ozone - Concepts.

Your environment

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

Scenarios​

Install with the chart defaults, see the services running, and access them from your machine.

You want to see Ozone working before deciding on disk, access, or security. You will install without a values file and check what starts: the Ozone Manager, which holds volumes, buckets, and keys; the Storage Container Manager, which coordinates the datanodes; the datanodes, which store the data; the S3 Gateway, the entry point of the S3 API; and Recon, a web management interface. Everything shown here is what the chart delivers on its own. The other scenarios start from this state.

Topology

One Ozone Manager, one Storage Container Manager, one S3 Gateway, one Recon, and the datanodes set in datanode.replicas, spread across nodes.

Disk

One ReadWriteOnce PVC for each datanode, OM, SCM, and S3 Gateway pod, in the cluster's default StorageClass. Recon has no persistent disk.

Memory

OM, SCM, each datanode, and the S3 Gateway with a memory request and limit, and the JVM heap calculated from the limit. Scenario 3 shows how to adjust it.

Access

Internal Services (ClusterIP), no Ingress. The S3 API is on the Service <RELEASE_NAME>-s3g-rest.

Security

Disabled: without Kerberos between the daemons, the S3 Gateway accepts any key, or none. Scenario 5 explains how to enable it.

What starts in the namespace with the chart defaults

namespace <NAMESPACE>port-forwardS3Who connectsport-forwardTDP componentsthrough the internal ServiceS3 GatewayS3 REST and Web UIOzone Managervolumes, buckets, and keysReconmanagement interfaceStorage Container Managercontainers and datanodesDatanode ×3replicas in datanode.replicasPVC per serviceDatanode spreadSecurity disabled
  1. Who connects from outside the cluster. Without external exposure, each person opens a tunnel from their own machine to the Service with kubectl port-forward: the S3 Gateway one, for S3 clients, or the one for a web interface. Use it for testing and maintenance. Chart default: no external exposure (port-forward).
  2. TDP components. Spark, Trino, Hive Metastore, and the other lakehouse charts write and read through the S3 Gateway, on the internal Service <RELEASE_NAME>-s3g-rest. The integration page shows each one. Chart default: no consumer configured.
  3. S3 Gateway. The S3 entry point of Ozone: it receives S3 API requests and serves a web interface, on the Services <RELEASE_NAME>-s3g-rest and <RELEASE_NAME>-s3g-web. With security disabled (default), it accepts any key. Chart default: replicas in s3g.replicas · ports in s3g.service.rest.port and s3g.service.web.port · memory in s3g.resources · persistent disk. (tdp-ozone.s3g)
  4. Ozone Manager (OM). Holds the Ozone namespace: volumes, buckets, and keys, which are the objects. Service <RELEASE_NAME>-om, with a web interface. Chart default: replicas in om.replicas · memory in om.resources · persistent disk. (tdp-ozone.om)
  5. Recon. Web management interface for the Ozone cluster, on the Service <RELEASE_NAME>-recon. It runs as a single-replica Deployment, with no persistent disk and no resource configuration. Chart default: enabled. (tdp-ozone.recon.enabled)
  6. Storage Container Manager (SCM). Coordinates the data containers and the datanodes that store them. Service <RELEASE_NAME>-scm, with a web interface. Chart default: replicas in scm.replicas · memory in scm.resources · persistent disk. (tdp-ozone.scm)
  7. Datanodes. They store the data, each on its own persistent disk. The chart spreads the datanodes across nodes, so that losing one node does not take down enough datanodes to block writes. Chart default: replicas in datanode.replicas · spread across nodes enabled · memory in datanode.resources · persistent disk. (tdp-ozone.datanode)
  8. Persistent disks. Datanode, OM, SCM, and S3 Gateway each have a ReadWriteOnce PVC mounted at /data, in the cluster's default StorageClass. Recon has no persistent disk. Chart default: enabled: size in persistence.size, StorageClass in persistence.storageClassName. (tdp-ozone.<service>.persistence)
  9. Datanode distribution. Anti-affinity and topologySpreadConstraints spread the datanodes across nodes. Chart default: enabled. (tdp-ozone.datanode.topologySpreadConstraints)
  10. Security. Without Kerberos between the daemons, the S3 Gateway accepts any key, or none. The security page shows how to enable it. Chart default: disabled. (tdp-ozone.kerberos.enabled)
What starts in the namespace with the chart defaults. Click an element to see what it is and its corresponding default.

Check the license and the StorageClass

The chart requires a valid TDP license, and the persistent disks use the cluster's default StorageClass.

Terminal input
kubectl get platformlicenses -A
kubectl get storageclass

It worked when

The license appears in the list and a StorageClass is marked (default). Without a license, install the tdp-license chart before continuing. Without a default StorageClass, see scenario 3.
$ kubectl get platformlicenses -A
NAMESPACE    NAME           PRODUCT   TYPE         STATE   CUSTOMER    NODES   MAX   CAPACITY    AGE
tdp-system   tdp-platform   *         COMMERCIAL   VALID   Local Dev   0             UNLIMITED   9d
$ kubectl get storageclass
NAME                   PROVISIONER                    RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
local-path (default)   rancher.io/local-path          Delete          WaitForFirstConsumer   false                  546d
nfs-path               kubernetes.io/no-provisioner   Retain          Immediate              false                  331d
px-repl3               pxd.portworx.com               Delete          Immediate              true                   546d

Create the pull Secret in the namespace

The release namespace has the tdp-registry Secret, with your Tecnisys registry credentials.

The Secret goes in the namespace where Ozone will run. If the namespace does not exist yet, create it first with kubectl create namespace <NAMESPACE>.

Terminal input
kubectl -n <NAMESPACE> create secret docker-registry tdp-registry \
--docker-server=registry.tecnisys.com.br \
--docker-username=<REGISTRY_USERNAME> --docker-password=<REGISTRY_CLI_SECRET>

It worked when

Terminal input
kubectl get secret tdp-registry -n <NAMESPACE>

The Secret appears in the namespace. How to obtain the registry credentials is in Prerequisites.

$ kubectl get secret tdp-registry -n tdp
NAME           TYPE                             DATA   AGE
tdp-registry   kubernetes.io/dockerconfigjson   1      126d

Install with the defaults

Without a values file, the chart starts exactly as in the figure above.

Terminal input
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-ozone \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace

Without --version, Helm installs the latest published version of the chart. The commands on this page pin the version of this documentation.

On OpenShift, this command is not enough: the image runs as its own hadoop user, which the default SCC does not allow. Use scenario 2.

On a single-node cluster, including OpenShift Local, also apply the single-node values from scenario 2.

It worked when

Terminal input
kubectl -n <NAMESPACE> get pods,svc,pvc

The pods reach Running and the PVCs reach Bound.

If a pod does not start

The namespace events, in time order, show the reason:

Terminal input
kubectl -n <NAMESPACE> get events --sort-by=.lastTimestamp

Then look for the message in When something goes wrong.

Access from your machine

Without external exposure, kubectl opens a tunnel from your machine to the Service.

The S3 API, for clients such as the AWS CLI:

Terminal input
kubectl -n <NAMESPACE> port-forward svc/<RELEASE_NAME>-s3g-rest 9878:9878

The web interfaces, one per command:

Terminal input
kubectl port-forward svc/<RELEASE_NAME>-om 9874:9874 -n <NAMESPACE>
kubectl port-forward svc/<RELEASE_NAME>-scm 9876:9876 -n <NAMESPACE>
kubectl port-forward svc/<RELEASE_NAME>-recon 9888:9888 -n <NAMESPACE>
ServiceWhat it is
<RELEASE_NAME>-s3g-restS3 Gateway S3 API, for S3 clients and for the TDP components
<RELEASE_NAME>-s3g-webS3 Gateway web interface
<RELEASE_NAME>-omOzone Manager web interface
<RELEASE_NAME>-scmStorage Container Manager web interface
<RELEASE_NAME>-reconRecon web interface

It worked when

The interfaces open on localhost, on the local port of each port-forward. The port of each Service is in All parameters.

Test the S3 API

Create, write, list, read, and delete a test bucket with the AWS CLI.

Without Kerberos, which is the default, the S3 Gateway does not check the keys: the AWS CLI only needs a non-empty pair to sign the requests.

Terminal input
aws configure set aws_access_key_id <S3_ACCESS_KEY>
aws configure set aws_secret_access_key <S3_SECRET_KEY>
aws configure set region us-east-1

Or per command: AWS_ACCESS_KEY_ID=<S3_ACCESS_KEY> AWS_SECRET_ACCESS_KEY=<S3_SECRET_KEY> aws s3 ls --endpoint-url=http://localhost:9878.

With the S3 API port-forward open, as in the previous step:

Terminal input
aws s3 mb s3://test-bucket --endpoint-url=http://localhost:9878
echo "Hello Ozone!" > test.txt
aws s3 cp test.txt s3://test-bucket/ --endpoint-url=http://localhost:9878
aws s3 ls --endpoint-url=http://localhost:9878
aws s3 cp s3://test-bucket/test.txt downloaded.txt --endpoint-url=http://localhost:9878

# Cleanup
aws s3 rm s3://test-bucket/test.txt --endpoint-url=http://localhost:9878
aws s3 rb s3://test-bucket --endpoint-url=http://localhost:9878
rm -f test.txt downloaded.txt

With the S3 REST Ingress published, use its URL instead of http://localhost:9878.

It worked when

aws s3 ls lists test-bucket and the aws s3 cp back brings the file. With security enabled, the keys come from the ozone-s3-credentials Secret: see Security - Apache Ozone.

When something goes wrong​

Troubleshooting

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

  1. OpenShift rejects the pods: seccomp may not be set. Cause: The anyuid SCC does not accept a seccomp profile, and the chart defines one by default. What to do: Install with openshift.enabled=true and tdp-ozone.securityContext.seccompProfile=null (scenario 2).
  2. helm upgrade fails with The order in patch list. Cause: A variable with the same name as one the chart already defines, such as hdds.scm.safemode.min.datanode. What to do: Use hdds.scm.safemode.enabled instead of hdds.scm.safemode.min.datanode (scenario 2, single node).
  3. S3 writes fail with HTTP 500 on a single datanode. Cause: The client requests the STANDARD class, which the S3 Gateway translates into more replicas than a single datanode can hold. What to do: Configure the client not to request STANDARD. In Trino, set s3.storage-class=REDUCED_REDUNDANCY in the catalogs.
  4. SCM does not start on OpenShift Local on a Mac with Apple M4/M5. Cause: The image's JDK fails because the VM exposes SVE/SME CPU features. The other Ozone pods restart in a loop. What to do: Add JAVA_TOOL_OPTIONS=-XX:UseSVE=0 to the tdp-ozone.env list (scenario 2, single node).
  5. PVCs stuck in Pending. Cause: There is no default StorageClass in the cluster, or the StorageClass provided does not exist. What to do: Mark a StorageClass as default or set persistence.storageClassName in each service (scenario 3).
  6. Pods stuck in ContainerCreating or FailedMount with Kerberos. Cause: On the first installation with Kerberos, the daemons wait for the KDC to start and for the hook Job to export the keytabs. This is transient. What to do: Wait up to the --timeout of the command. If it does not resolve, check the KDC and the export Job.
  7. Unable to locate credentials or connection refused. Cause: The S3 client has no key configured, or the S3 Gateway and the Ingress are not reachable. What to do: Check the AWS CLI configuration, the S3 Gateway pod, and the Ingress.
  8. 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 pods and on the client. With Kerberos enabled, read the key from the ozone-s3-credentials Secret again.
  9. Another problem. Cause: Start with the state of the pods and Services, and with the namespace events. What to do: The events in time order show what prevents the pod from starting.

What remains after uninstalling​

Terminal input
helm uninstall <RELEASE_NAME> -n <NAMESPACE>

The data volumes remain: a new installation with the same name in the same namespace finds the old data. The PVCs of the OM, the SCM, the S3 Gateway, and each datanode remain and, with Kerberos, the KDC PVC. With Kerberos, the keytab Secrets also remain. The ConfigMap <RELEASE_NAME>-ozone is removed by a chart hook after the uninstall.

To start from scratch, delete the PVCs and the keytab Secrets. This deletes all the data stored in Ozone.

Terminal input
kubectl -n <NAMESPACE> get pvc

# Ozone PVCs: <RELEASE_NAME>-om-<RELEASE_NAME>-om-0, <RELEASE_NAME>-scm-<RELEASE_NAME>-scm-0,
# <RELEASE_NAME>-s3g-<RELEASE_NAME>-s3g-0, one <RELEASE_NAME>-datanode-<RELEASE_NAME>-datanode-<n>
# per datanode and, with Kerberos, <RELEASE_NAME>-kdc
kubectl -n <NAMESPACE> delete pvc <PVC_NAME>

kubectl -n <NAMESPACE> delete secret <RELEASE_NAME>-om-keytab <RELEASE_NAME>-scm-keytab \
<RELEASE_NAME>-dn-keytab <RELEASE_NAME>-s3g-keytab <RELEASE_NAME>-recon-keytab --ignore-not-found

The removal order for all components and for the platform is in Uninstallation.

Lists in the values file​

tdp-ozone.env is a list. When a values file defines it, Helm does not merge its entries with those of another file: it replaces the entire list, including the one from the Kerberos file. That is why, with Kerberos, the single-node and Mac Apple M4/M5 entries go in the same env list of the Kerberos file, in a single file.

All parameters​

Filter by name or by group. The chart prefix is already filled in. Keys without a prefix go at the root of the values file.

All the Ozone keys go directly under the tdp-ozone prefix, with no intermediate ozone: level. Only openshift and TDP-Settings go at the root.

From 3.0.2 on, tdp-ozone.<key> replaces tdp-ozone.ozone.<key>.

58 of 58 parameters

ParameterDescriptionChart default
tdp-ozone.enabledGeneralEnables the Ozone subcharttrue
tdp-ozone.image.repositoryGeneralImage of the Ozone servicesregistry.tecnisys.com.br/community/images/apache/ozone
tdp-ozone.image.tagGeneralOzone image tag2.1.1
tdp-ozone.envGeneralEnvironment variables common to all services (list)[]
openshift.enabledOpenShiftGrants the anyuid SCC to the default ServiceAccount of the release namespacefalse
tdp-ozone.securityContext.seccompProfileOpenShiftSeccomp profile of the pods. null on OpenShifttype: RuntimeDefault
tdp-ozone.datanode.replicasServicesNumber of datanodes3
tdp-ozone.datanode.topologySpreadConstraintsServicesDistribution of the datanodes across nodeshostname, maxSkew: 1, ScheduleAnyway
tdp-ozone.datanode.service.portServicesDatanode Service port9882
tdp-ozone.om.replicasServicesOzone Manager replicas1
tdp-ozone.om.service.typeServicesOzone Manager Service typeClusterIP
tdp-ozone.om.service.portServicesOzone Manager Service port9874
tdp-ozone.scm.replicasServicesStorage Container Manager replicas1
tdp-ozone.scm.service.typeServicesStorage Container Manager Service typeClusterIP
tdp-ozone.scm.service.portServicesStorage Container Manager Service port9876
tdp-ozone.s3g.replicasServicesS3 Gateway replicas1
tdp-ozone.s3g.service.rest.portServicesS3 API Service port (<RELEASE_NAME>-s3g-rest)9878
tdp-ozone.s3g.service.web.portServicesS3 Web UI Service port (<RELEASE_NAME>-s3g-web)19878
tdp-ozone.recon.enabledServicesEnables Recon (single-replica Deployment)true
tdp-ozone.recon.service.portServicesRecon Service port9888
tdp-ozone.om.resourcesResourcesOzone Manager request and limitrequests cpu: 250m, memory: 1Gi; limits memory: 2Gi
tdp-ozone.scm.resourcesResourcesStorage Container Manager request and limitrequests cpu: 250m, memory: 1Gi; limits memory: 2Gi
tdp-ozone.datanode.resourcesResourcesRequest and limit of each datanoderequests cpu: 250m, memory: 1Gi; limits memory: 2Gi
tdp-ozone.s3g.resourcesResourcesS3 Gateway request and limitrequests cpu: 100m, memory: 512Mi; limits memory: 1Gi
tdp-ozone.env → OZONE_HEAPSIZE_MAXResourcesMaximum heap of the Ozone JVMs. Without the variable, 25% of the memory limitnot set
tdp-ozone.datanode.persistence.enabledPersistencePVC of each datanodetrue
tdp-ozone.datanode.persistence.sizePersistenceSize of each datanode PVC10Gi
tdp-ozone.datanode.persistence.accessModesPersistenceAccess modes of the datanode PVC[ReadWriteOnce]
tdp-ozone.datanode.persistence.storageClassNamePersistencePVC StorageClass. Empty uses the cluster default~
tdp-ozone.om.persistence.enabledPersistenceOzone Manager PVCtrue
tdp-ozone.om.persistence.sizePersistenceOzone Manager PVC size10Gi
tdp-ozone.scm.persistence.enabledPersistenceStorage Container Manager PVCtrue
tdp-ozone.scm.persistence.sizePersistenceStorage Container Manager PVC size10Gi
tdp-ozone.s3g.persistence.enabledPersistenceS3 Gateway PVCtrue
tdp-ozone.s3g.persistence.sizePersistenceS3 Gateway PVC size10Gi
tdp-ozone.kerberos.kdc.persistence.sizePersistenceInternal KDC PVC size (Kerberos only)1Gi
tdp-ozone.kerberos.kdc.persistence.storageClassNamePersistenceKDC PVC StorageClass. Empty uses the cluster default~
tdp-ozone.kerberos.enabledSecurityDeploys the internal KDC and enables Kerberos on OM, SCM, datanodes, S3 Gateway, and Recon. S3 request validation depends on itfalse
tdp-ozone.kerberos.realmSecurityPrivate realm of the internal KDCTDP.LOCAL
tdp-ozone.kerberos.masterPasswordSecurityKDC master password. No default, set at deployment""
tdp-ozone.s3g.auth.enabledSecurityControls the automatic issuing of the ozone-s3-credentials Secret by a Job (only with Kerberos). Request validation depends on kerberos.enabled: truetrue
tdp-ozone.s3g.auth.secretNameSecuritySecret filled with the S3 key issued by the Ozone Manager. Only exists with kerberos.enabled: trueozone-s3-credentials
tdp-ozone.s3g.auth.adminUsernameSecurityIdentity for which the provisioning Job issues the keytdp-s3-admin
tdp-ozone.ingress.s3g.rest.enabledExposureS3 API Ingresstrue
tdp-ozone.ingress.s3g.rest.hosts[0].hostExposureS3 API hostnameozone-s3.tdp.local
tdp-ozone.ingress.s3g.web.enabledExposureS3 Web UI Ingresstrue
tdp-ozone.ingress.s3g.web.hosts[0].hostExposureS3 Web UI hostnameozone-s3-ui.tdp.local
tdp-ozone.ingress.om.enabledExposureOM interface Ingresstrue
tdp-ozone.ingress.om.hosts[0].hostExposureOM interface hostnameozone-om.tdp.local
tdp-ozone.ingress.scm.enabledExposureSCM interface Ingresstrue
tdp-ozone.ingress.scm.hosts[0].hostExposureSCM interface hostnameozone-scm.tdp.local
tdp-ozone.ingress.recon.enabledExposureRecon interface Ingresstrue
tdp-ozone.ingress.recon.hosts[0].hostExposureRecon interface hostnameozone-recon.tdp.local
tdp-ozone.gatewayApi.parentRefsExposureExisting Gateway the HTTPRoutes attach to[]
tdp-ozone.gatewayApi.gateway.enabledExposureCreates a Gateway owned by the chart, with TLS on the listeners of gatewayApi.gateway.listenersfalse
TDP-Settings.gateway.ingress.enabledExposureCreates the Ingress resources above (one Route each on OpenShift)false
TDP-Settings.gateway.gatewayApi.enabledExposureCreates the Gateway API HTTPRoutesfalse
cleanup.enabledUninstallationPost-delete hook that removes the <RELEASE_NAME>-ozone ConfigMap after helm uninstalltrue

For the complete list of parameters, see the chart's values.yaml or run helm show values for the installed version.

Next steps​