Apache Atlas captures lineage on Cloudera by collecting metadata from hooks in the engines that run your queries, then linking inputs to outputs as a graph. Cloudera documents default lineage sources of Hive, Impala and Spark, and lineage only appears for work those hooks see. Setting it up is mostly a question of which engines you run, which hooks are on and where the gaps are. This guide covers what lineage captures, hooks by engine, the gaps to expect and how to review lineage for audit. It supports our Cloudera SDX, Ranger and Atlas consulting page.
What lineage captures
Atlas stores entities (tables, columns, files, processes) and the relationships between them. A query that reads two tables and writes a third becomes a process entity with two inputs and one output. Cloudera's metadata collection overview lists the collection sources, and its governance overview describes the predefined hooks and bridges: hooks capture activity as it happens, and bridges import metadata that already exists.
Three things follow from that design:
- Lineage is only as complete as the hooks. Work that bypasses a hooked engine leaves no trail.
- Lineage is table and column level for supported engines, not row level. It shows where data came from, not which records.
- Files appear when a hooked engine references them. Cloudera's lineage documentation says filesystem operations themselves are not tracked. {VER}
Hooks by engine
| Engine | Lineage in Atlas | Check |
|---|---|---|
| Hive (HiveServer) | Default lineage source; queries become process entities | Confirm the Atlas hook is enabled on HiveServer and the Hive Metastore hook is on |
| Impala | Default lineage source; queries appear as processes and affected tables appear as Hive entities. Impala lineage events carry an operation type in recent releases per Cloudera | Check your release notes for the lineage fix level; see Cloudera's Impala lineage page |
| Spark | Default lineage source through the Spark Atlas connector; actions such as CREATE TABLE AS SELECT and INSERT map to Spark process entities | Cloudera notes out-of-order collection between the connector and the Hive Metastore can record unexpected relationships |
| NiFi, Sqoop and others | Predefined hooks exist for other tools per Cloudera | Enable only those you run |
| Everything else (custom code, direct file copies, external tools) | Not captured unless you add entities through the Atlas API | List these in your gap register |
Hook names and defaults change between releases.
Gaps to expect
- Hive tables to files. A Cloudera known-issues page for an older release says Atlas did not create lineage between Hive tables and backing HDFS files for CTAS run in Impala or Spark. Check whether this still applies to your release.
- One Spark session, one process. Cloudera's documentation says Atlas can create a single process entity for a Spark session, which makes job-level lineage coarse.
- Out-of-order events. If Hive Metastore events and Spark events arrive in a different order, relationships can look wrong.
- Work outside hooked engines. Shell scripts, external ETL tools and direct file moves leave gaps.
- Short-lived and temporary tables. They create noise and rarely matter for audit. Decide whether to hide them.
A setup sequence
- List the engines and tools that read and write regulated data.
- Match each to a hook or bridge and a release that supports it.
- Turn on hooks in a test cluster, run a known pipeline and compare the Atlas graph with your diagram.
- Record every difference in a gap register with an owner.
- Add missing links through the Atlas API only for the pipelines the audit needs.
- Import existing metadata with a bridge where history matters.
- Repeat the check after each upgrade; see our CDH and HDP to CDP upgrade guide.
Reviewing lineage
Lineage is useful to an examiner only if you can follow one data element from report to source and explain each hop. Pick three or four critical data elements, such as a regulatory report field, and walk them back through Atlas. Write down where the graph stops and why. A gap you have named and explained is far better received than one found by someone else. See data lineage for AI and audit and the worked example BCBS 239 data governance.
Review with a table you keep:
| Data element | Source | Hops in Atlas | Where it stops | Owner and fix |
|---|---|---|---|---|
| Report field A | Core system extract | [to complete] | [to complete] | [to complete] |
Questions we hear
Does Atlas lineage cover NiFi flows? Cloudera lists predefined hooks for several tools; confirm each against your release.
Can lineage be edited? Yes, through the Atlas API, but manual entries need an owner and a review, or they go stale.
Is Atlas the only option? No. See Apache Atlas vs DataHub and lineage tools compared.
A worked check: one report field
An illustrative scenario, not a client. An analyst needs to show where "exposure amount" on a regulatory report comes from. The team walks the field back through Atlas and records what it finds.
| Hop | What Atlas shows | What the team writes down |
|---|---|---|
| Report table | Created by a Spark job from two staging tables | Process entity found; job owner named |
| Staging tables | Loaded by a Hive INSERT from a landing table | Hive hook working; lineage complete |
| Landing table | Loaded by an external ETL tool, no hook | Gap: lineage stops; add the link by API and name an owner |
| Core system extract | Not in Atlas | Out of scope for Atlas; documented in the data dictionary |
The result is a short, honest note: three hops captured, one gap, one owner. That is a better position in an examination than a graph that looks complete but cannot be explained.
A first engagement
Duczer East reviews your Atlas lineage against three critical data elements, produces a gap register and fixes the hooks that matter. Scope is agreed in writing first.




