Processing goes
to where the data is.
In TDP Datacenter, data is stored on the Workers and processing happens close to it. Once prepared, the data is available for querying, with the definition of each table in the Hive Metastore.
- Data and processing on the same machines
- Scenario: one more Worker
- A catalog for the tables
- Scenario: the same table in several engines
Data and processing on the same machines
When data reaches the cluster, it is stored on the Workers, and processing happens close to where it is.
HDFS splits each file into blocks and replicates the blocks across the DataNodes, while the NameNode records where each block and its replicas are.
YARN distributes the cluster's CPU and memory among the applications: the ResourceManager arbitrates the resources, and the NodeManager of each machine starts and monitors the containers.
Since the storage and processing machines are usually the same, tasks can run on the nodes where the data already is, which reduces network traffic.
Default
HDFS as the file system
The cluster creation wizard starts with the choice of the storage layer service, HDFS, with block replication for fault tolerance.
Default
Engines on YARN
MapReduce, Tez and Spark run as YARN applications, and YARN reserves for each one the CPU and memory it requests.
Available
Apache Ozone
Distributed object storage, organized into volumes, buckets and keys, with access through the S3 protocol.
Scenario: one more Worker
Situation: the data volume grows, and the cluster needs more space and more processing capacity.
What TDP does: a new Worker receives a DataNode and a NodeManager, and the NodeManager starts offering YARN the memory and CPU cores configured for that node.
Effect: the same machine expands storage space and processing capacity at the same time.
The recommendation is to use, if possible, dedicated disks, volumes and directories for the files of the DataNodes, NameNodes, JournalNodes, NodeManagers, Timeline Services and ZooKeeper.
These directories are defined in the service customization step.
A catalog for the tables
Once prepared, the data becomes available for querying: the Hive Metastore stores the definition of each table, and the data stays in storage.
In TDP Datacenter, the Hive Metastore is part of the Hive service installed by Ambari.
It records databases, tables, columns, types, partitions and the physical location of the files, which remain in HDFS or in another configured storage.
The definitions are kept in a relational database, specified during the Hive service customization. In the documented installation, a PostgreSQL instance.
As a catalog, the Hive Metastore can also be used outside Hive, by engines such as Spark and Trino and by table formats such as Iceberg and Delta Lake.
In this role, different engines query the same service to discover tables, schemas, partitions and locations.
Scenario: the same table in several engines
Situation: a table defined in Hive over HDFS files must also be queried by other engines.
What TDP does: the Metastore indicates where the table files are and how to interpret them.
Effect: the table is found by name in any engine that queries the same Metastore, without copying the files.
The Hive Metastore and other components store configurations and metadata in relational databases.
If the Metastore database is lost, the tables can no longer be found by name, even with the files preserved in HDFS.
Details in Apache Hive.
See also
Machines
Each machine with its role
Masters, Workers and Utility or Edge, with the components of each role and the sizing scenario.
Management
Management through Ambari and installation order
Ambari Server and Agents, the cluster blueprint and the installation sequence of the services.