Spark relationships

Atlas shows the entities related to this entity in the Relationships tab in the Dashboard.

The Relationships tab shows the relationships that exist for an entity. Use this view to navigate among related entities.

Figure 1. Spark relationships in the New User Interface

Relationships tab of the execution-4 spark_process entity in the New User Interface. The Application section lists the spark_application entity, Inputs lists the cargo_processed hive_table, Outputs lists the cargo_archive hive_table, and ColumnLineages lists three spark_column_lineage entities for the destination, status, and tracking_id columns.

The Relationships tab of the execution-4 spark_process entity in the New User Interface. The Application section lists the spark_application entity, Inputs lists the cargo_processed hive_table entity, Outputs lists the cargo_archive hive_table entity, and ColumnLineages lists three spark_column_lineage entities for the destination, status, and tracking_id columns.

Figure 2. Spark relationships in the Classic User Interface

Relationships tab of the execution-4 spark_process entity in the Classic User Interface. The Application section lists the spark_application entity, Inputs lists the cargo_processed hive_table, Outputs lists the cargo_archive hive_table, and ColumnLineages lists three spark_column_lineage entities for the destination, status, and tracking_id columns.

The Relationships tab of the execution-4 spark_process entity in the Classic User Interface. The Application section lists the spark_application entity, Inputs lists the cargo_processed hive_table entity, Outputs lists the cargo_archive hive_table entity, and ColumnLineages lists three spark_column_lineage entities for the destination, status, and tracking_id columns.

Relationships shown for each Spark entity type

The sections of the Relationships tab depend on the type of the entity. Each section is named after a relationship attribute of the entity type and lists the related entities. Select a related entity to open its details page.

Entity type Relationships section Related entities
spark_application Processes All spark_process entities that the Spark application created. Use this section to find every Spark process of one application run.
spark_process Application The spark_application entity that ran the process.
spark_process Inputs The data sets that the process read, for example hive_table entities.
spark_process Outputs The data sets that the process wrote, for example hive_table entities.
spark_process ColumnLineages One spark_column_lineage entity for each output column whose source columns Atlas can identify. Output columns without an identifiable source column have no entry.
spark_process ProcessExecutions This section is empty. It appears only when Show Empty Values is turned on.
spark_column_lineage Process The spark_process entity that produced the column lineage.
spark_column_lineage Inputs The source columns, for example hive_column entities.
spark_column_lineage Outputs The single output column that the source columns populate.
hive_table inputToProcesses and outputFromProcesses The spark_process entities that read or wrote the table, listed together with the Hive processes of the table. These sections appear among the other relationships of the table, such as its columns and database.

Names of Spark entities in the Relationships tab

Use the entity names to identify which Spark run and which column a related entity belongs to:

  • spark_application: the Spark application name followed by the YARN application ID, for example Cargo Logistics Pipeline application_1791968989207_0005. For applications started from spark-shell, the name is Spark Job + application ID.
  • spark_process: execution-n, where n is a counter within the application. The qualified name is application ID-execution-n.
  • spark_column_lineage: output table qualified name:timestamp:output column, where timestamp is the time of creation in milliseconds. The last part of the name shows which output column the lineage describes.

Relationships tab controls

  • Switch between the Graph view and the list view. The list view is called Table in the New User Interface and Card in the Classic User Interface.
  • In the list view, turn on Show Empty Values to also show relationship sections that have no related entities.
  • In the New User Interface, select Show deleted in a section to include deleted related entities.
  • In the New User Interface, use Limit to set how many related entities a section shows. The default is 100.