Skip to main content

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.

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.

Lakehouse data flow in TDP KubernetesData leaves the source systems and enters through NiFi and Kafka, which also captures database changes. NiFi consumes the Kafka topics and writes files to Ozone S3 storage. Spark reads and writes the Iceberg and Delta Lake tables that form the lakehouse, and Airflow schedules Spark jobs and Trino queries. The Hive Metastore holds the table catalog, queried by Spark and Trino. Trino queries the Iceberg tables and serves Superset and CloudBeaver, with Ranger access policies. JupyterHub uses notebooks with Spark, reads the tables and has the Trino client. Scheduled maintenance jobs act on the tables.SOURCESINGESTIONPROCESSINGSTORAGECONSUMPTIONApache Airflowschedules Spark jobs and Trino queriesSourcesystemsdatabasesfileseventsApache NiFidata flowsApache Kafkastreaming and CDCApache Sparkreads and writesthe tablesScheduled maintenanceSpark jobs on the tablesLakehouseApache OzoneS3 storageApache Icebergtables and snapshotsDelta Laketables and transaction logHive Metastoretable catalogJupyterHubnotebooks with SparkTrinoSQL on Iceberg tablesApache SupersetdashboardsCloudBeaverweb SQL clientApache Rangeraccess policies in Trinoconsumeswrites filesTrino clientschemas and location
Figure 1 - Lakehouse in TDP Kubernetes: from ingestion to consumption, with scheduled table maintenance
1 · Ingestion

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.

2 · Processing

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.

3 · Lakehouse

The files are kept in the Apache Ozone S3 storage, organized as Apache Iceberg or Delta Lake tables.

4 · Catalog

The Hive Metastore records the schema and the location of the tables. Spark and Trino query the same catalog.

5 · Consumption

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.

Maintenance

Scheduled jobs expire old versions, remove unused files and compact small files.

Who does what

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:

  1. 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.
  2. 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.
  3. 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.

Reference architecture

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.

Next steps​