Storage and processing
that grow separately.
S3-compatible storage keeps the table files, the engines that prepare and query the data grow independently, and the shared catalog lets a table created by Spark be queried by Trino under the same name.
S3-compatible storage
This is where the data and metadata files of the tables are kept: the engines access them through an object storage API.
In the lakehouse architecture described for TDP Kubernetes, the data and metadata files of the tables are kept in S3-compatible object storage, accessed through the Amazon S3 API. The endpoint, the credentials and the access options are configured in each component that reads or writes these objects.
Ozone as the default, another S3 endpoint and the credentials: Lakehouse › Storage and catalog. Connections in the components: S3-compatible storage. Role of the service: Apache Ozone.
Processing independent of storage
The engines that prepare and query the data grow separately from the storage.
The table files live only in the object storage, Ozone or another S3. Spark and Trino read and write them there and provide the processing and the querying, not the storage.
The number of engine workers can be changed without changing the number of Ozone Datanodes, and the storage can be expanded without increasing the workers.
This separation allows adding engines over the same data, provided they are compatible with the formats and integrations in use.
Each component defines its own replicas, CPU and memory. The Trino and Spark workers can scale automatically according to the load, with autoscaling and its prerequisites configured.
Scenario: month-end closing and data growth
Situation: at month-end closing, the query volume rises for a few days, while the table data keeps growing.
What TDP does: with autoscaling configured, the HPA scales out the Trino workers within the defined limits and scales them in after the peak, according to the CPU and memory metrics.
The Ozone Datanodes are expanded separately, without changing the number of engine workers.
Effect: the query peak and the data growth are each handled in their own layer.
Resources, limits and autoscaling prerequisites: Scalability.
Shared table catalog
A table created by Spark can be queried by Trino under the same name.
The Hive Metastore records the schema, the partitions and the file location of each table.
The processing engines query the catalog to find the table and read the files directly from storage.
Since the catalog stores only the metadata, it stays lightweight, while the data volume grows in the object storage.
This is the shared catalog model described for the TDP Kubernetes lakehouse. Iceberg can also use other catalog types. Adopting an alternative requires configuring the integration in the engines that will access the tables.
The catalog metadata is kept in the PostgreSQL used by the Hive Metastore.
If this database is lost, the tables can no longer be found by name, even with the files preserved in storage.
Persistence of this database: Data that survives the Pod.
Trino catalogs, Spark extensions and Delta Lake tables: Lakehouse › Storage and catalog. The service: Hive Metastore.
See also
Overview
TDP Kubernetes Architecture
The cluster figure, the platform map and the charts per component.
Data path
Who does what along the data path
Kafka, NiFi and Airflow on arrival; Spark, Trino and ClickHouse in preparation and querying; the connections to existing systems.
Operation
Operators and deployment
CRDs and operators for Kafka, ClickHouse and NiFi, what stays with the team, and direct application with Helm or GitOps delivery with Argo CD.
Organization
Namespaces and environments
Platform namespace, registry credential and network rules per namespace. Production, staging and development in the same cluster.