Area: Ingestion
Sub-Area: Dremio
Applies to: OSS + Cloud
Issue
A Dremio ingestion run fails from the CLI, or the dataset URNs the Dremio connector creates don't match the URNs you expected, especially for Dremio sources that point at external platforms such as S3 or Snowflake.
You Might Be Asking
- Why does my Dremio recipe fail with
host_port? - Why does username and password login fail with the Dremio connector?
- What does a Dremio dataset URN look like?
- How do I link Dremio datasets to the upstream S3 or Snowflake datasets?
Cause
-
Wrong connection keys. The Dremio connection config uses
hostnameandport(default9047, the Dremio REST API port). It has nohost_portkey. DataHub config models reject unknown keys, so a recipe withhost_portfails validation before it connects. -
Wrong authentication method.
authentication_methoddefaults toPAT. WithPAT, the connector sends thepasswordvalue as a Bearer token and ignoresusername. APATrecipe with nopasswordfails withPassword (Personal Access Token) is required when using PAT authentication. Username and password login needsauthentication_method: password. -
Wrong URN format. The connector names every Dremio dataset
dremio.plus the Dremio path, lowercased. A URN built without thedremio.prefix matches nothing.
Solution
-
Use
hostnameandportwith the right authentication method. For username and password login:
source:
type: dremio
config:
hostname: dremio.company.com
port: 9047
tls: true
authentication_method: password
username: "${DREMIO_USER}"
password: "${DREMIO_PASSWORD}"
For a personal access token, keep the default authentication_method: PAT and put the token in password. username is ignored in that mode.
tls defaults to true. If your Dremio REST endpoint doesn't use TLS, set tls: false. Dremio Cloud uses is_dremio_cloud: true (default false), with dremio_cloud_region (US by default, or EU) and dremio_cloud_project_id.
-
Use the correct URN format. A Dremio dataset URN looks like this:
urn:li:dataset:(urn:li:dataPlatform:dremio,dremio.<source>.<folder...>.<table>,PROD)The name is lowercased. If you set
platform_instancein the recipe, the instance comes before thedremio.part. The top-levelplatform_instanceapplies to the Dremio datasets themselves. It doesn't describe external sources. -
Map Dremio sources to upstream platforms. Each Dremio source mapping has:
-
platform(for example S3 or Snowflake) -
source_name(the name of the source in Dremio) - optional
convert_urns_to_lowercase -
platform_instanceandenv
The connector builds upstream URNs with the mapping's
platform_instanceandenv. Set them to match the values you use in the recipe for the upstream connector, or the URNs won't line up. A source type override (platform,category,database_in_path) maps a Dremio source type to a DataHub platform. See the Cross-Platform Lineage section of the Dremio source page for the exact recipe keys. -
-
Troubleshoot CLI ingestion.
- The connector uses the Dremio REST API and system-table queries. It doesn't use ODBC or JDBC, so an ODBC or JDBC test doesn't prove the connector can connect. Check that the machine running the CLI can reach
hostnameon the RESTport, and that thetlssetting matches your Dremio endpoint. - If a
username/passwordrecipe fails to log in, check thatauthentication_method: passwordis set. The connector then posts to<http|https>://<hostname>:<port>/apiv2/login. - Check the Dremio privileges for the connector user:
-
READ METADATAon sources and spaces (orON SYSTEM) -
SELECT ON SYSTEM(required, for system tables) -
SELECTon sources and spaces, only if you enable profiling -
VIEW JOB HISTORY ON SYSTEM, only for query lineage (include_query_lineage, defaultfalse)
-
- The connector uses the Dremio REST API and system-table queries. It doesn't use ODBC or JDBC, so an ODBC or JDBC test doesn't prove the connector can connect. Check that the machine running the CLI can reach