HiveServer entities created in Atlas
Atlas represents Hive databases, tables, columns, queries, and query runs as typed entities. Each entity type stores the attributes listed in this topic.
The following diagrams show a summary of the entities created in Atlas for Hive operations and assets. The supertypes that contribute attributes to the entity types are shaded.


The metadata collected for each entity type is as follows:
Hive Process
| Identifier | Example content |
|---|---|
| typeName | hive_process |
| guid | System generated ID. This value is used to identify the entity in the Atlas Dashboard URL. |
| qualifiedName |
For
CREATE TABLE AS SELECT, CREATE VIEW, ALTER VIEW AS SELECT, CREATE TABLE for an
external table, and ALTER TABLE ... SET LOCATION for an external table:
For other operations, such as INSERT ... SELECT:
For ALTER TABLE
statements on an external table, the name starts with the operation, for example
For
LOAD DATA and IMPORT, the name starts with |
| name | Same
value as qualifiedName. The process name does not
contain the text of the query. The query text is in recentQueries and
in the process execution entities. |
| clusterName | The metadata namespace of the cluster, for example cm. |
| inputs | List of the input tables, views, or file system paths, including each entity’s type name and the qualified name. |
| outputs | List
of the output objects, including each entity’s type name and the qualified name. The
output of an EXPORT statement is a file system path entity, such as
hdfs_path. |
| recentQueries | Text of the last query that ran, in lowercase (duplicated in the process execution). |
| operationType | The
name of the Hive operation, for example QUERY for an INSERT ... SELECT
statement, CREATETABLE_AS_SELECT for CREATE TABLE AS SELECT,
CREATETABLE for CREATE TABLE of an external table,
ALTERTABLE_PROPERTIES for ALTER TABLE ... SET TBLPROPERTIES on an
external table, LOAD for LOAD DATA, or IMPORT for
IMPORT. After ALTER TABLE ... SET LOCATION on an external table, the process that
CREATE TABLE created has the operation type ALTERTABLE_LOCATION. |
| queryText, userName, queryId | Empty by default. The process execution entity stores these values for each query run. |
| startTime, endTime | The time when the hook created or updated the process entity. These are not the times of the query. The process execution entity stores the query times. |
| queryPlan | Not Supported. |
Hive Process Execution
| Identifier | Example Content |
|---|---|
| typeName | hive_process_execution |
| guid | System generated ID. This value is used to identify the entity in the URL of the entity details page. |
| qualifiedName | <process
qualifiedName>:<start time in milliseconds>:<end time in
milliseconds> |
| name | Same value as qualifiedName. |
| queryText | Text of the query, in lowercase. |
| queryPlan | Not Supported. |
| queryId | hive_<date as yyyymmddhhmmss>_<UUID>, for example hive_20261028162842_<UUID> |
| hostName | The host name of the HiveServer instance that ran the query. |
| startTime | Query start time. |
| endTime | Query end time. |
| userName | The user who ran the query. |
| Relationship: Process | One process to one or more process
executions. hive_process_process_execution |
Hive Database
| Identifier | Example Content |
|---|---|
| typeName | hive_db |
| guid | System generated ID. This value is used to identify the entity in the URL of the entity details page. |
| qualifiedName | <database>@<clustername> |
| name | Database name as reported from Hive. |
| clusterName | Cluster name. |
| location | The file system path where the backing files for the database are stored. This could be an HDFS path, an AWS S3 object, or an Azure data storage location. |
| managedLocation | The file system path where Hive stores the data of the managed tables of the database. |
| owner | The user who initially created the database. |
| ownerType | The principal type of the database owner. Could be USER, ROLE, or GROUP. |
| parameters | Additional key-value pair metadata that comes from Hive such as table size, number of rows, and number of storage files. |
| Relationship: Table | One database to many tables.
hive_table_db |
| Relationship: Database DDL | One
database to many database DDL entities.
hive_db_ddl_queries |
| Relationship: Location path | One
database to the file system path entities of its location and
managedLocation.
hive_db_location, hive_db_managed_location |
Hive Table
| Identifier | Example Content |
|---|---|
| typeName | hive_table |
| guid | System generated ID. This value is used to identify the entity in the URL of the entity details page. |
| qualifiedName | <database>.<tablename>@<clustername> |
| name | Table name. |
| columns | List of the columns defined in the table. The Atlas Dashboard shows these as links to the column entity details. |
| owner | The user who created the table. |
| parameters |
Table details from HiveServer such as:
|
| retention | The retention time that Hive reports for the table, as an integer. |
| createTime | The time when the table was created in Hive. |
| lastAccessTime | The time when the table was last accessed, as reported by Hive. |
| comment | The table description from Hive. |
| viewOriginalText, viewExpandedText | For views, the query that defines the view, as written and with fully qualified names. |
| temporary | Indicates whether the table is a temporary table. |
| sd |
The location of the table data, the storage description.
|
| tableType | How the table was created: one of EXTERNAL_TABLE, VIRTUAL_VIEW, or MANAGED_TABLE. |
| Relationship: Database | One database to many tables.
hive_table_db |
| Relationship: Columns | One table to one or more columns.
hive_table_columns |
| Relationship: Partition Key Column | One table to one or more columns that are
partition keys. hive_table_partitionkeys |
| Relationship: Storage Description | One table to one storage description.
hive_table_storagedesc |
| Relationship: DDL | One table to many DDL entities.
hive_table_ddl_queries |
| Relationship: inputToProcesses | The hive_process entities that read from this table.
The relationship type is dataset_process_inputs. |
| Relationship: outputFromProcesses | The hive_process entities that write to this table.
The relationship type is process_dataset_outputs. |
Hive Column
| Identifier | Example Content |
|---|---|
| typeName | hive_column |
| comment | Metadata from Hive from the column description. |
| name | Column name as reported by HMS. |
| owner | Table owner name as reported by HMS. |
| position | This column’s position in the list of columns in a zero-based index. |
| qualifiedName | <database>.<table>.<column>@<clustername> |
| table | Table name. Also modeled as relationship. |
| type | Column data type as reported by HMS. |
| Relationship: table | One table to one or more columns.
hive_table_columns |
| Relationship: inputToProcesses | The hive_column_lineage entities that include
this column in the input to a transformation. The relationship
type is dataset_process_inputs. |
| Relationship: outputFromProcesses | The hive_column_lineage entities that include
this column in the output to a transformation. The relationship
type is process_dataset_outputs. |
| Relationship: Partition Key Column | One table to one or more columns that are
partition keys. hive_table_partitionkeys |
Hive Column Lineage
| Identifier | Example Content |
|---|---|
| typeName | hive_column_lineage |
| depenendencyType | The type of relationship between the input and output columns; one of SIMPLE, EXPRESSION, or SCRIPT. |
| name | <process
qualifiedName>:<output_column> |
| expression | For
the EXPRESSION dependency type, the expression that calculates the output column,
for example (passenger_revenue.total_fare_usd * 1.2). Empty for the
other dependency types. |
| inputs |
List of 0 or more |
| outputs | This is a legacy model component: the more current model uses a relationship attribute. |
| qualifiedName | Same as name. |
| query | Name of the hive_process entity that
produced this lineage. This is a legacy model component: the
more current model uses a relationship attribute. |
| Relationship: Process | Name of the hive_process entity that
produced this lineage. hive_process_column_lineage |
| Relationship: inputToProcesses | List of 0 or more hive_column entities
that contributed to the output columns. |
| Relationship: outputFromProcesses | List of 0 or more hive_column entities
that were produced in the process. |
Hive Storage Description
| Identifier | Example Content |
|---|---|
| typeName | hive_storagedesc |
| compressed | Metadata from Hive indicating whether the table is stored compressed. |
| inputFormat | Metadata from Hive indicating the storage input format. |
| outputFormat | Metadata from Hive indicating the storage output format. |
| parameters | Additional metadata from Hive in the form of key-value pairs. |
| qualifiedName | <database>.<table>@<clustername>_storage |
| serdeInfo | Metadata from Hive indicating the serialization/deserialization implementation used to write/read table data. |
| sortCols | Metadata from Hive listing the column or columns used to sort the table data. |
| storedAsSubDirectories | Metadata from Hive indicating whether a skewed table uses the list bucketing feature, which creates subdirectories for skewed values. |
| bucketCols | Metadata from Hive listing the column or columns used to bucket the table data. |
| numBuckets | Metadata from Hive indicating the number of buckets for bucketed tables. Non-bucketed tables are indicated by -1. |
| location | The file system path where the data of the table is stored. |
| table | The table that this storage description holds data for. Also represented as a relationship. |
| Relationship: table | The table that this storage description holds data for. |
HDFS Path
The
processes of the LOAD DATA, EXPORT, and
IMPORT statements list the file system path as an input or
output.
| Identifier | Example Content |
|---|---|
| typeName | hdfs_path |
| qualifiedName | <path as hdfs://<namenode>:<port>/<path>>@<clustername>, for example
hdfs://namenode.example.com:8020/tmp/load_demo.csv@cm |
| name | The path without the host name, for example /tmp/load_demo.csv. |
| path | The full path including the host name and the port, without the cluster name. |
| clusterName | The metadata namespace of the cluster, for example cm. |
| isFile, isSymlink, fileSize, numberOfReplicas | Default values. The Atlas hook for HiveServer does not read them from HDFS. |
| Relationship: inputToProcesses | The processes that read from the path, for example the process of a
LOAD DATA or IMPORT statement. |
| Relationship: outputFromProcesses | The processes that write to the path, for example the process of an
EXPORT statement. |
Hive Database DDL
| Identifier | Example Content |
|---|---|
| typeName | hive_db_ddl |
| qualifiedName | <database>@<clustername>:<execution time in milliseconds> |
| queryText | The text of the statement that created or changed the database. |
| execTime | The time when the statement ran. |
| userName | The user who ran the statement. |
| serviceType | The service that ran the statement. |
| Relationship: database | One database DDL entity to one database. A database has many DDL entities.
hive_db_ddl_queries |
Hive Table DDL
| Identifier | Example Content |
|---|---|
| typeName | hive_table_ddl |
| qualifiedName | <database>.<table>@<clustername>:<execution time in milliseconds> |
| queryText | The text of the statement that created or changed the table. |
| execTime | The time when the statement ran. |
| userName | The user who ran the statement. |
| serviceType | The service that ran the statement. |
| Relationship: table | One table DDL entity to one table. A table has many DDL entities.
hive_table_ddl_queries |
