marmotdata/flink

Discover jobs and their vertices from an Apache Flink JobManager

Registry Pipelines Apache Flink Apache Flink Pipelines AssetsLineageRun History Experimental Marmot >=0.13.0 Version 0.4.0 (latest)Version 0.3.0Version 0.2.0Version 0.1.1Version 0.1.0 Source(opens in a new tab) Install

The Flink plugin discovers jobs from an Apache Flink JobManager. Each job becomes a Pipeline, each vertex of its job graph a Task, with CONTAINS edges from the Pipeline to its Tasks and DEPENDS_ON edges between Tasks taken from the job plan. The timestamps Flink keeps for a job's state changes are recorded as run history.

It reads the JobManager REST API (/config, /jobs/overview, /jobs/{jid}, /jobs/{jid}/config, /jobs/{jid}/exceptions), which needs no credentials. username/password and token are for a proxy placed in front of the JobManager.

Naming

A Pipeline is named after the job. Flink lets several jobs share a name, in which case the most recently started job keeps the bare name and the others are named <name> (<jid>). A Task is named after its vertex and its MRN is mrn://asset/task/flink/<pipeline name>.<vertex name>. Set zone when you catalogue more than one JobManager, which puts it in every MRN, for example mrn://asset/pipeline/flink@prod/wordcount.

Jobs the JobManager still lists

The JobManager keeps listing finished, failed and cancelled jobs until it restarts. They are discovered by default; set include_completed: false to keep only jobs that are still running.