Dremio setup
- Maintained by: Dremio
- Authors: Dremio
- GitHub repo: dremio/dbt-dremio
- PyPI package:
dbt-dremio - Slack channel: db-dremio
- Supported dbt Core version: v1.8.0 and newer
- dbt support: Not Supported
- Minimum data platform version: Dremio 22.0
Installing dbt-dremio
Use pip to install the adapter. Before 1.8, installing the adapter would automatically install dbt-core and any additional dependencies. Beginning in 1.8, installing an adapter does not automatically install dbt-core. This is because adapters and dbt Core versions have been decoupled from each other so we no longer want to overwrite existing dbt-core installations.
Use the following command for installation:
python -m pip install dbt-core dbt-dremio
Configuring dbt-dremio
For Dremio-specific configuration, please refer to Dremio configs.
Follow the repository's link for OS dependencies.
Model contracts are not supported.
Prerequisites for Dremio Cloud
Before connecting from project to Dremio Cloud, follow these prerequisite steps:
- Ensure that you have the ID of the Sonar project that you want to use. See Obtaining the ID of a Project.
- Ensure that you have a personal access token (PAT) for authenticating to Dremio Cloud. See Creating a Token.
- Ensure that Python 3.9.x or later is installed on the system that you are running dbt on.
Prerequisites for Dremio Software
-
Ensure that you are using version 22.0 or later.
-
Ensure that Python 3.9.x or later is installed on the system that you are running dbt on.
-
If you want to use TLS to secure the connection between dbt and Dremio Software, configure full wire encryption in your Dremio cluster. For instructions, see Configuring Wire Encryption.
Initializing a Project
- Run the command
dbt init <project_name>. - Select
dremioas the database to use. - Select one of these options to generate a profile for your project:
dremio_cloudfor working with Dremio Cloudsoftware_with_username_passwordfor working with a Dremio Software cluster and authenticating to the cluster with a username and a passwordsoftware_with_patfor working with a Dremio Software cluster and authenticating to the cluster with a personal access token
Next, configure the profile for your project.
Profiles
When you initialize a project, you create one of these three profiles. You must configure it before trying to connect to Dremio Cloud or Dremio Software.
- Profile for Dremio Cloud
- Profile for Dremio Software with Username/Password Authentication
- Profile for Dremio Software with Authentication Through a Personal Access Token
For descriptions of the configurations in these profiles, see Configurations.
- Cloud
- Software (Username/Password)
- Software (Personal Access Token)
[project name]:
outputs:
dev:
cloud_host: api.dremio.cloud
cloud_project_id: [project ID]
object_storage_source: [name]
object_storage_path: [path]
dremio_space: [name]
dremio_space_folder: [path]
pat: [personal access token]
threads: [integer >= 1]
type: dremio
use_ssl: true
user: [email address]
target: dev
[project name]:
outputs:
dev:
password: [password]
port: [port]
software_host: [hostname or IP address]
object_storage_source: [name
object_storage_path: [path]
dremio_space: [name]
dremio_space_folder: [path]
threads: [integer >= 1]
type: dremio
use_ssl: [true|false]
user: [username]
target: dev
[project name]:
outputs:
dev:
pat: [personal access token]
port: [port]
software_host: [hostname or IP address]
object_storage_source: [name
object_storage_path: [path]
dremio_space: [name]
dremio_space_folder: [path]
threads: [integer >= 1]
type: dremio
use_ssl: [true|false]
user: [username]
target: dev
Configurations Common to Profiles for Dremio Cloud and Dremio Software
| Loading table... |
Configurations in Profiles for Dremio Cloud
| Loading table... |
Configurations in Profiles for Dremio Software
| Loading table... |
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.



