Skip to main content

Services distributed across the cluster,
management centralized in Ambari.

How the TDP Datacenter components are organized: the data path from ingestion to analysis, the role of each machine, the table catalog, and management through Apache Ambari, where security and high availability are also configured. This is the overview. Each topic has its own page.

TDP Datacenter: customer cluster with Master, Worker and Utility or Edge machines; for each service, the components in each role and how they communicate; management by Ambari (seven-machine reference topology, as an example)TDP Datacenter is installed on the customer's cluster machines, physical or virtual. The figure is organized in lanes, one per service, crossing three columns: Masters, Workers and Utility or Edge. In HDFS, the NameNode directs the DataNodes to create, delete and replicate blocks. In YARN, the NodeManager reports container resource usage to the ResourceManager, and the ResourceManager allocates resources among applications. In Hive, HiveServer2 queries the Hive Metastore over Thrift and registers in ZooKeeper for dynamic discovery; Hive depends on HDFS, YARN, Tez and ZooKeeper. In Trino, the coordinator plans the queries and the workers execute the tasks, communicating over the REST API. In HBase, the RegionServer manages the data under the HBase Master. Kafka has one or more brokers. Ranger Admin stores the policies that the service plugins fetch, when enabled; the Knox Gateway is the single REST and HTTP access point; the Atlas Server receives metadata through the Hive hook, enabled in Ambari. The service clients live on the Utility or Edge machine, together with the Ambari Server; the Ambari Agent runs on every machine and communicates with the Ambari Server. Packages come from the TDP stack repository, and the administrator operates the cluster through Ambari Web and the REST API. Underlined terms link to the Glossary.Repositoryof packagespackages of the TDP stackAdministratorAmbari Weband REST APICustomer clusterMASTERS · 3 MACHINEScontrol, management and coordinationWORKERS · 3 MACHINESstorage, operation and executionUTILITY OR EDGE · 1management and service clientsHDFSYARNHiveZooKeeperTrinoHBaseKafkaSecurityGovernanceNameNodeDataNodeHDFS ClientResourceManagerNodeManagerYARN ClientHive MetastoreHiveServer2Hive ClientZooKeeper ServerZooKeeper ClientTrino CoordinatorTrino WorkerTrino CLIHBase MasterHBase RegionServerHBase ClientKafka BrokerRanger AdminKnox GatewayAtlas ServerManaged by AmbariAmbari Agent on each MasterAmbari Agent on each WorkerAmbari ServerIngestionProcessingStorageQueryingSecurity and governanceManagement and infrastructurecommunication between componentsseven machines: example · underlined: Glossary
Figure 1 - TDP Datacenter in the customer cluster. The reference topology has seven machines: three Masters, three Workers and one Utility or Edge machine. The number of machines and the distribution of components are defined during installation, in Ambari. The figure shows, as an example, the components of some services in each role and how they communicate. Underlined terms link to the Glossary.

What the figure shows:

  1. Outside the cluster, on the left, the package repository of the TDP stack, from which the machines install the services, and the administrator, who operates the cluster through Ambari Web or the Ambari Server REST API. Installation order · Management through Ambari
  2. The three columns are the machine roles: the Masters concentrate the control, management and coordination components; the Workers, the storage, operation and execution components; the Utility or Edge machine hosts the Ambari Server and the service clients. Each machine with its role
  3. Each row is a service, with its components distributed across the roles: the NameNode on the Masters and the DataNodes on the Workers, the ResourceManager and the NodeManagers, the Trino Coordinator and the Trino Workers, the HBase Master and the RegionServers. The arrows mark the communication between them. Hive, ZooKeeper, Kafka, Ranger, Knox and Atlas have their server components on the Masters. The Hive and ZooKeeper clients are on the Utility or Edge machine. Data and processing · Catalog · Security
  4. At the base, management through Ambari: an Ambari Agent on each Master and each Worker performs the actions and sends host information to the Ambari Server, on the Utility or Edge machine. Management through Ambari
  5. The colors indicate the layer of each component, according to the legend: ingestion, processing, storage, querying, security and governance, management and infrastructure. The double-headed arrow marks the communication between components. The platform map
  • Services installed on the cluster nodes
  • Distributed storage in HDFS
  • Processing resources managed by YARN
  • Table catalog in the Hive Metastore
  • Security and high availability of the services
  • Centralized management through Ambari

The platform map​

You can select a component to see its role and what it works with.

IngestionCapture and integration
OrchestrationScheduled pipelines
ProcessingBatch and streaming
StorageFiles, objects and tables
QueryingSQL, OLAP and search
VisualizationBI, notebooks and SQL client
Security and governance
Platform management
Apache NiFi — Data flow (Ingestion)
Automates data flows between systems, with processors that collect, transform and route the data. In a cluster, ZooKeeper elects the coordinator node and handles failover.
Mandatory dependency: Apache ZooKeeper
Configurable in Ambari: Kerberos, Apache Ranger, OpenMetadata
Configurable in the tool: NiFi Registry, Apache Kafka, Apache Livy, Apache Hive, Apache Hadoop (HDFS), Apache HBase, Apache Iceberg, Apache Druid, Apache Solr, Apache Atlas
NiFi Registry — Flow versioning (Ingestion)
Stores and versions the flows created in NiFi.
Configurable in Ambari: Kerberos, Apache Ranger
Configurable in the tool: Apache NiFi
Apache Kafka — Event streaming (Ingestion)
Distributed platform to publish, store and process event streams. The brokers rely on ZooKeeper for coordination and leader election.
Mandatory dependency: Apache ZooKeeper
Mandatory for: Apache Atlas
Configurable in Ambari: Trino, Kerberos, Apache Ranger, OpenMetadata
Configurable in the tool: Apache NiFi, Apache Airflow, JupyterLab
Apache Sqoop — Batch transfer (Ingestion)
Command-line tool to import and export data in bulk between relational databases and HDFS. Project retired by Apache, with removal planned in TDP.
Mandatory dependency: Apache Hadoop (HDFS)
Configurable in Ambari: Kerberos, Apache Atlas
Apache Airflow — Pipeline orchestration (Orchestration)
Schedules and monitors pipelines defined as DAGs in Python. The metadata is kept in its own database, created during the installation preparation.
Mandatory for: OpenMetadata
Configurable in Ambari: Kerberos, Apache Atlas, OpenMetadata, PostgreSQL
Configurable in the tool: Apache Kafka, Apache Spark, Apache Hive, Trino, Apache Druid, Great Expectations
Apache Hadoop (YARN) — Resource management (Processing)
Distributes the cluster CPU and memory among the applications. The ResourceManager arbitrates the resources, and the NodeManagers start and monitor the containers on each machine.
Mandatory dependency: Apache Hadoop (MapReduce), Apache Hadoop (HDFS), Apache ZooKeeper
Mandatory for: Apache Hadoop (MapReduce), Apache Tez, Apache Spark, Apache Flink, Apache Hive, Apache Hadoop (HDFS), Apache Zeppelin, JupyterLab
Configurable in Ambari: Kerberos, Apache Ranger, Apache Knox (Enabled by default)
Apache Hadoop (MapReduce) — Batch processing (Processing)
Batch processing model in two phases, map and reduce, run on YARN, with reads and writes in HDFS.
Mandatory dependency: Apache Hadoop (YARN)
Mandatory for: Apache Hadoop (YARN)
Configurable in Ambari: Kerberos
Apache Tez — DAG execution (Processing)
Execution framework on YARN that chains the steps of a processing job into a DAG and keeps intermediate results in memory, with fewer accesses to HDFS.
Mandatory dependency: Apache Hadoop (YARN)
Mandatory for: Apache Hive
Configurable in Ambari: Kerberos
Apache Spark — Distributed processing (Processing)
In-memory analytics engine for batch, streaming, SQL and machine learning. Uses HDFS, runs on YARN and reads and writes Kafka topics through Spark Streaming.
Mandatory dependency: Apache Hadoop (YARN), Apache Hive, Apache Hadoop (HDFS)
Mandatory for: Apache Livy
Configurable in Ambari: Hive Metastore (Enabled by default), Apache Iceberg (Enabled by default), JupyterLab (Enabled by default), Kerberos, OpenMetadata
Configurable in the tool: Apache Airflow, Apache Zeppelin
Apache Flink — Stateful streaming (Processing)
Stateful distributed processing for unbounded and bounded streams, with data correctness guarantees and event-time processing.
Mandatory dependency: Apache Hadoop (YARN), Apache Hadoop (HDFS)
Configurable in Ambari: JupyterLab (Enabled by default), Kerberos, OpenMetadata
Configurable in the tool: Apache Zeppelin
Apache Livy — REST API for Spark (Processing)
Allows submitting and managing Spark jobs through a REST API, with reusable sessions.
Mandatory dependency: Apache Spark
Configurable in the tool: Apache NiFi, Apache Zeppelin
Apache Hadoop (HDFS) — Distributed file system (Storage)
Splits files into blocks and replicates each block on different DataNodes. The NameNode records where each block and its replicas are stored.
Mandatory dependency: Apache Hadoop (YARN), Apache ZooKeeper
Mandatory for: Apache Sqoop, Apache Hadoop (YARN), Apache Spark, Apache Flink, Apache Hive, Apache HBase, Apache Druid, Apache Solr, Apache Zeppelin, JupyterLab, Ranger KMS
Configurable in Ambari: Kerberos, Apache Ranger, Apache Knox (Enabled by default)
Configurable in the tool: Apache NiFi
Apache Ozone — Object storage (Storage)
Distributed object storage, organized into volumes, buckets and keys, with access through the S3 protocol.
Configurable in Ambari: Kerberos, Apache Ranger
Apache HBase — NoSQL database (Storage)
Distributed column-oriented database for real-time reads and writes. Writes the data to HDFS and uses ZooKeeper to coordinate the HMaster and the RegionServers.
Mandatory dependency: Apache Hadoop (HDFS), Apache ZooKeeper
Configurable in Ambari: Trino, Kerberos, Apache Ranger, Apache Knox (Enabled by default), Apache Atlas
Configurable in the tool: Apache NiFi, Apache Zeppelin, JupyterLab
Hive Metastore — Table catalog (Storage)
Stores databases, tables, columns, partitions and the location of the files of each table. In TDP Datacenter, it is part of the Hive service.
Mandatory for: Apache Hive
Configurable in Ambari: Apache Spark (Enabled by default)
Apache Iceberg — Table format (Storage)
Open table format, with version control (time travel), that provides SQL tables to engines such as Spark, Trino, Flink and Hive.
Configurable in Ambari: Apache Spark (Enabled by default), Trino, OpenMetadata
Configurable in the tool: Apache NiFi
Delta Lake — Table format (Storage)
Transactional layer over the data lake, with ACID transactions and version control over Parquet files, and connectors for Spark, Flink and Hive.
Configurable in Ambari: Trino, OpenMetadata
Apache Hive — SQL data warehouse (Querying)
Defines tables over the data in HDFS and runs SQL queries for transformation and reporting. In Ambari, the Hive service depends on Tez.
Mandatory dependency: Apache Hadoop (YARN), Apache Tez, Apache Hadoop (HDFS), Hive Metastore, Apache ZooKeeper
Mandatory for: Apache Spark
Configurable in Ambari: Trino, Kerberos, Apache Ranger, Apache Knox (Enabled by default), Apache Atlas, OpenMetadata, PostgreSQL
Configurable in the tool: Apache NiFi, Apache Airflow, JupyterLab
Trino — Distributed SQL (Querying)
Runs federated SQL queries over several sources. In Ambari, the connectors for Hive, Iceberg, Delta Lake, Kafka and Druid come ready to be enabled.
Configurable in Ambari: Apache Kafka, Apache Hive, Apache HBase, Apache Iceberg, Delta Lake, Apache Druid, Kerberos, Apache Ranger (Enabled by default), OpenMetadata
Configurable in the tool: Apache Airflow, Apache Superset, JupyterLab
Apache Druid — Real-time analytical database (Querying)
Analytical database for fast OLAP queries, with real-time ingestion, including from Kafka. Uses ZooKeeper for coordination and leader election.
Mandatory dependency: Apache Hadoop (HDFS), Apache ZooKeeper
Configurable in Ambari: Trino, Kerberos, OpenMetadata, PostgreSQL
Configurable in the tool: Apache NiFi, Apache Airflow
Apache Solr — Search and indexing (Querying)
Enterprise search platform built on Apache Lucene, with near real-time indexing. In a cluster, the nodes use ZooKeeper to know the cluster state.
Mandatory dependency: Apache Hadoop (HDFS), Apache ZooKeeper
Configurable in Ambari: Kerberos, Apache Ranger
Configurable in the tool: Apache NiFi, Apache Superset
Apache Superset — BI and dashboards (Visualization)
Data exploration and interactive dashboards, with a SQL IDE and support for most SQL databases.
Configurable in Ambari: Kerberos, OpenMetadata, PostgreSQL
Configurable in the tool: Trino, Apache Solr
Apache Zeppelin — Notebooks (Visualization)
Web notebook for data exploration and visualization, with interpreters such as Spark, Livy, Flink, Python, JDBC and Shell.
Mandatory dependency: Apache Hadoop (YARN), Apache Hadoop (HDFS)
Configurable in Ambari: Kerberos, Apache Knox (Enabled by default)
Configurable in the tool: Apache Spark, Apache Flink, Apache Livy, Apache HBase
JupyterLab — Notebooks (Visualization)
Web environment for notebooks, terminals and files in the same window, with kernels for several languages. In Ambari, it depends on HDFS and YARN.
Mandatory dependency: Apache Hadoop (YARN), Apache Hadoop (HDFS)
Configurable in Ambari: Apache Spark (Enabled by default), Apache Flink (Enabled by default), Kerberos
Configurable in the tool: Apache Kafka, Apache Hive, Trino, Apache HBase, Great Expectations
Kerberos — Authentication (Security and governance)
Authenticates services and users with temporary tickets, without sending passwords over the network.
Configurable in Ambari: Apache NiFi, NiFi Registry, Apache Kafka, Apache Sqoop, Apache Airflow, Apache Hadoop (YARN), Apache Hadoop (MapReduce), Apache Tez, Apache Spark, Apache Flink, Apache Hive, Trino, Apache Hadoop (HDFS), Apache Ozone, Apache HBase, Apache Druid, Apache Solr, Apache Superset, Apache Zeppelin, JupyterLab, Apache Ranger, Apache Knox, Ranger KMS, Apache Atlas, Great Expectations, Apache ZooKeeper, Ambari Metrics, Ambari Infra Solr
Apache Ranger — Access policies (Security and governance)
Administers the access policies of the cluster services. HDFS, YARN, Hive, HBase, Kafka, Knox, NiFi, NiFi Registry, Ozone, Solr and Atlas have a Ranger plugin, enabled through Ambari. In Trino, the plugin comes enabled.
Mandatory for: Ranger KMS
Configurable in Ambari: Apache NiFi, NiFi Registry, Apache Kafka, Apache Hadoop (YARN), Apache Hive, Trino (Enabled by default), Apache Hadoop (HDFS), Apache Ozone, Apache HBase, Apache Solr, Kerberos, Apache Knox, Apache Atlas, PostgreSQL
Apache Knox — Access gateway (Security and governance)
Single entry point to the cluster. Each topology defines which services are exposed and with which rules.
Configurable in Ambari: Apache Hadoop (YARN) (Enabled by default), Apache Hive (Enabled by default), Apache Hadoop (HDFS) (Enabled by default), Apache HBase (Enabled by default), Apache Zeppelin (Enabled by default), Kerberos, Apache Ranger
Ranger KMS — Key management (Security and governance)
Manages the keys used in HDFS transparent encryption, with policy-based access control and auditing.
Mandatory dependency: Apache Hadoop (HDFS), Apache Ranger
Configurable in Ambari: Kerberos, PostgreSQL
Apache Atlas — Governance and lineage (Security and governance)
Catalog of data assets with classification, search and lineage. Receives metadata from Hive, HBase and Sqoop through hooks enabled in Ambari, and allows Ranger to apply tag-based policies.
Mandatory dependency: Apache Kafka
Configurable in Ambari: Apache Sqoop, Apache Airflow, Apache Hive, Apache HBase, Kerberos, Apache Ranger, OpenMetadata
Configurable in the tool: Apache NiFi
OpenMetadata — Metadata catalog (Security and governance)
Metadata platform for discovery, governance, quality and collaboration, with data lineage. The metadata ingestion pipelines run on Airflow.
Mandatory dependency: Apache Airflow
Configurable in Ambari: Apache NiFi, Apache Kafka, Apache Airflow, Apache Spark, Apache Flink, Apache Hive, Trino, Apache Iceberg, Delta Lake, Apache Druid, Apache Superset, Apache Atlas, PostgreSQL
Great Expectations — Data quality (Security and governance)
Validates the data with declarative rules, the expectations, and generates quality reports (Data Docs).
Configurable in Ambari: Kerberos
Configurable in the tool: Apache Airflow, JupyterLab
Apache Ambari — Cluster management (Platform management)
Installs, configures, monitors and upgrades the cluster services through the web interface or the REST API. An Ambari Agent on each machine performs the actions sent by the Ambari Server.
Apache ZooKeeper — Distributed coordination (Platform management)
Coordinates the distributed services and is a requirement for NameNode and ResourceManager high availability. It is installed on an odd number of machines, starting from three.
Mandatory for: Apache NiFi, Apache Kafka, Apache Hadoop (YARN), Apache Hive, Apache Hadoop (HDFS), Apache HBase, Apache Druid, Apache Solr, Ambari Metrics, Ambari Infra Solr
Configurable in Ambari: Kerberos
Ambari Metrics — Cluster metrics (Platform management)
Metrics service recommended among the basic cluster services. Includes Grafana, whose administration credentials are defined during installation.
Mandatory dependency: Apache ZooKeeper
Configurable in Ambari: Kerberos
Ambari Infra Solr — Ambari Solr (Platform management)
Apache Solr instance installed as an Ambari service and recommended among the basic cluster services.
Mandatory dependency: Apache ZooKeeper
Configurable in Ambari: Kerberos
PostgreSQL — Metadata database (Platform management)
In the documented installation, it is the relational database of the Ambari Server and hosts the metadata databases of services such as Hive, Ranger, Ranger KMS, Airflow, Druid, Superset and OpenMetadata, created during the installation preparation.
Configurable in Ambari: Apache Airflow, Apache Hive, Apache Druid, Apache Superset, Apache Ranger, Ranger KMS, OpenMetadata
Map 1 - Data flow in TDP Datacenter, from ingestion to analysis

When you select a component, the panel shows what it integrates with, in three types:

  • Mandatory dependency: Ambari only installs the service together with the services it depends on, such as Hive with HDFS, YARN, Tez and ZooKeeper. In the opposite direction, the panel shows for which services the component is mandatory.
  • Configurable in Ambari: the integration is already provided for in the service configuration and can be enabled in Ambari by the administrator, such as the Ranger plugins, the Atlas hooks and the Trino connectors. The Ambari panel shows which ones are enabled.
  • Configurable in the tool: the connector is already installed with the component, and the user creates the connection in the tool, such as a connection in Airflow, a processor in NiFi, an interpreter in Zeppelin or the code of a notebook.

An integration introduced in a later version shows the version from which it is available.

The stages of the map follow the data path.

Data arrives through ingestion, with NiFi, Kafka and Sqoop, and is prepared in processing, with Spark, Tez and Flink on YARN, in pipelines scheduled by Airflow.

It is then kept in storage, in HDFS, Ozone, HBase and in Iceberg and Delta Lake tables, and reaches querying through Hive, Trino, Druid and Solr.

Finally, it feeds the analyses, in dashboards in Superset and in notebooks in Zeppelin and JupyterLab.

Along this path, Trino combines several sources in a single query, through the connectors enabled in Ambari.

Iceberg tables keep version control of the data (time travel), and the table catalog makes the same tables available to different engines.

In detail​

Each topic has its own page.

Layered security​

Along this path, authentication, authorization, perimeter and encryption keys are handled by dedicated services.

In the architecture, security is formed by services of the cluster itself, enabled and configured through Ambari: Kerberos authenticates, Ranger authorizes, Knox concentrates external access and Ranger KMS manages the HDFS encryption keys.

In governance, Apache Atlas catalogs and classifies the data, with search and lineage, so that each dataset can be found, understood and protected.

Security model

Layers and examples in Security model.

High availability​

The core services get a second instance, and ZooKeeper coordinates the switchover.

The HDFS NameNode and the YARN ResourceManager can operate in active and standby pairs, with the switchover coordinated by ZooKeeper, and the redundant components are placed on distinct machines of the cluster.

High availability

Quorum, replication, upgrade and continuity in High availability and resilience.

Next steps​

Also explore the Datacenter fundamentals: Security model, High availability, Scalability, Observability and Privacy.