Reliable tables
on open storage.
TDP Kubernetes organizes the files in S3 storage into Apache Iceberg and Delta Lake tables, with transactions, versions, and a shared catalog, and keeps these tables in order with scheduled jobs. This is the overview. Each topic has its own page.
Object storage plus a table format: the data lake files start to behave like SQL tables.
In a data lake, the data is kept as files in object storage, which grows independently of processing.
A table format adds to these files what is expected from a database: ACID transactions, schema, updates and deletes of records, and table versions.
As a result, several engines work on the same tables at the same time, in batch, in streaming or through SQL.
In TDP Kubernetes, the storage is Apache Ozone, which is S3-compatible, and the table formats are Apache Iceberg and Delta Lake, highlighted in Figure 1.
Both formats can be used in the same environment: each table adopts one of them.
Topics on this page
In detail
Each topic has its own page.
Formats
Open tables with Iceberg and Delta Lake
Schema, ACID transactions, versions and time travel on the storage files.
Storage
Storage and catalog
Ozone or another S3 endpoint for the files. Hive Metastore and Trino catalogs to locate the tables.
Operation
Scheduled maintenance
Version expiration, removal of unused files and compaction, per format, and what is configurable.
The data path
The flow below presents a TDP Kubernetes reference architecture, combining Ozone storage, Hive Metastore and the Spark and Trino engines. The Iceberg and Delta Lake formats can take part in other architectures. Here, the integrations follow the TDP components and configuration guides.
The data comes in, is processed and written as tables in the lakehouse, from where it moves on to query and analysis.
NiFi collects and routes data through visual flows. Kafka receives streaming events, including change data capture (CDC) from databases with Debezium connectors. NiFi also consumes the Kafka topics and writes files to the Ozone S3 storage.
Spark transforms the data, in batch or in streaming, and writes the result as tables in the lakehouse. Airflow schedules the Spark jobs and the Trino queries.
The files are kept in the Apache Ozone S3 storage, organized as Apache Iceberg or Delta Lake tables.
The Hive Metastore records the schema and the location of the tables. Spark and Trino query the same catalog.
Trino runs SQL on the Iceberg tables and serves Superset and CloudBeaver. In JupyterHub, the notebooks already include PySpark, the Iceberg and Delta Lake libraries and the Trino client, to read the tables through Spark or query them through Trino.
Scheduled jobs expire old versions, remove unused files and compact small files.
The role of each component in this path, with an example of a complete solution: Who does what in the data path.
Scenario: several areas, one truth per subject
Situation: sales, billing and support register the same customer, each area in its own system and in its own way. The totals do not match across the areas, the same customer appears twice, and nobody knows which record is valid.
What TDP does: the data comes in as it arrives from the sources and is written to tables in the lakehouse, in three layers (bronze, silver and gold, in the medallion architecture), each with its own role:
- Raw: each source becomes a table with the records as they arrived, including the change events captured by Kafka. Nothing is corrected here, which makes it possible to rebuild the following layers.
- Integrated: Spark jobs standardize the fields, match the records by common keys and write one table per subject, such as customer, contract and address, registered in the Hive Metastore. The OpenMetadata quality tests, at the table and column levels, check that the data is complete, up to date and correct.
- Indicators: ready-made tables per area and per period, queried by Trino and published in Superset dashboards. Airflow schedules the three stages.
Effect: the areas start reading the same table per subject, through the same catalog, and the dashboards read the indicator tables through Trino. The raw layer preserves the source. The truth about each customer is kept in the integrated layer.
The complete design, with the role of each component: Reference architectures › A single record across areas. Who can see each column of these tables: Privacy.