Skip to Content
SourcesApache Hive

Apache Hive

Apache Hive

Scan Hive tables and views across selected databases.

Category
Warehouse & Lakehouse
Source type
HIVE
Produces
table

Hive is the SQL layer over Hadoop-era data lakes, and the metastore behind a lot of Spark platforms. Where it’s still running, it usually holds the oldest and least-governed data in the estate.

What you need to connect

Host and port for HiveServer2, plus a username and password. The transport scheme is a setting: native binary, HTTP, HTTPS, Spark SQL, or the Databricks flavour. Anything else the driver needs — Kerberos service name, an HTTP path — goes in the extra connection arguments.

What Classifyre reads

Tables and views, in one database or across all visible databases, with a denylist for the ones you don’t want and an object allowlist for the ones you do.

Shared behaviour · SQL databases

One asset per table or view, never one per row. The asset carries the table's structure — database, schema, table name, object type, its columns and their types, and a row-count estimate — and its content is a sample of real rows, formatted so a detector reads actual values rather than a schema dump.

How many rows, and which ones, is entirely up to the sampling strategy. Large tables are paged through by key rather than by OFFSET, so a scan that stops halfway can resume from where it left off instead of re-reading from the top.

Read-only throughout. The connector issues catalog queries and bounded SELECTs. Nothing is written back, and a read-only account is the right account to give it.

Relationships come out of the engine's own catalog: a view and the tables it reads from are recorded as FLOW — real lineage, with column-level detail parsed out of the view's SQL where the SQL makes that possible. See Lineage.

Metadata on every asset

Asset kind · table

FieldTypeAlways presentWhat it is
databasestringYesDatabase or catalog name
table_namestringYesTable name
table_typestringYesObject type (TABLE/VIEW)
schemastringNoSchema name
columnsobject[]NoColumns as {name, type} objects
row_countintegerNoEstimated number of rows
object_typestringNoSource object type

Lineage

Lineage

Views and the tables they read are recovered from the metastore and recorded as lineage, with column detail parsed from the view SQL where it can be. Hive has no enforced foreign keys, so there are no reference edges to record. See Lineage & Relationships.

Worth knowing

  • Row counts come from table statistics where they exist. Tables that have never been analysed report no estimate rather than a wrong one.
  • Spark SQL endpoints connect through the same source — pick the Spark SQL scheme.

Configuration

Beyond the fields below, every source also has the settings shared by all of them: the sampling strategy, the detectors to run, the scan schedule, and the compute limits for its scan jobs.

Required

Without these, the source will not save.

FieldTypeRequiredWhat it doesDefault
requiredobjectYesno extra properties
hoststringYesHive host endpointlocalhost
portintegerYesHive TCP portmin 1, max 6553510000

Secrets

Stored encrypted and never shown again after you save them. See Configuration & Fields.

FieldTypeRequiredWhat it doesDefault
maskedobjectYesno extra properties
passwordstringYesHive login password
usernamestringYesHive login username

Optional

Everything you can tune. Sensible defaults apply when you leave them alone.

FieldTypeRequiredWhat it doesDefault
optionalobjectNono extra properties
connectionobjectNoHive connection transport and authentication options.no extra properties
connection.connect_argsobjectNoAdditional PyHive connection arguments (e.g. auth, kerberos_service_name, http_path).{}
connection.schemeenumNoHive transport and driver scheme Allowed: hive, hive+http, hive+https, sparksql, databricks+pyhive
scopeobjectNoHive database and object selection scope.no extra properties
scope.databasestringNoSingle Hive database to scan (optional when include_all_databases is true)
scope.exclude_databasesarrayNoDatabase denylist (exact database names)["information_schema","sys"]
scope.exclude_databases[]stringNo
scope.include_all_databasesbooleanNoScan all visible Hive databases except excluded system databasesfalse
scope.include_objectsarrayNoOptional object allowlist. Accepted forms: table or database.table
scope.include_objects[]stringNo
scope.include_tablesbooleanNoInclude table assets in extractiontrue
scope.include_viewsbooleanNoInclude view assets in extractiontrue
scope.table_limitintegerNoOptional cap on number of table/view assets extracted per databasemin 1
Last updated on