The Flink adapter plugin for dbt
Project description
DBT-Flink Adapter
This is POC for DBT-FLINK adapter
rerequisities
- Flink 1.16+
- Flink SqlGateway
Usage
Before we start to play with dbt adapter, we need to setup Flink cluster with SqlGateway configured and running. To simplify that process we prepared Docker Compose configuration.
Install dbt-flink-adapter
cd project_example
python3 -m venv venv
source venv/bin/activate
pip install dbt-flink-adapter
dbt --version
dbt-flink should be enlisted among plugins
Configure DBT profile
Locate DBT profile on your machine.
It should be in home directory under ~/.dbt/profiles.yml
Add there below config:
flink_profile:
target: dev
outputs:
dev:
type: flink
host: localhost
port: 8083
session_name: test_session
Launch Flink cluster
cd envs/kafka
docker compose up
cd envs/flink-1.16
docker compose up
Play with sample DBT project with dbt-flink adapter
dbt test
dbt run
FLink SQL tables should be created on Flink cluster
tear down Flink cluster
docker compose stop
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dbt-flink-adapter-1.3.2.tar.gz.
File metadata
- Download URL: dbt-flink-adapter-1.3.2.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1ddc144903479da9ea76579c3bf249fbc82d678a0ff606be3db341cb922d89f
|
|
| MD5 |
56d391d18f4e64ec8df8a9d2ab9fcc7a
|
|
| BLAKE2b-256 |
46db92b3bf6b5fad611dc108052d67b00af976ca72503db67c4c3d6c55e7d68e
|
File details
Details for the file dbt_flink_adapter-1.3.2-py3-none-any.whl.
File metadata
- Download URL: dbt_flink_adapter-1.3.2-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ce545c4d69485718dc75015dd210bb977f3048d28840cf610eb91802c41b50a
|
|
| MD5 |
c0b7bb3df8e541757e0bb324763a10a2
|
|
| BLAKE2b-256 |
9b8ed7600d2f25fd893dd96e3dc3cabc04edd27dbf40b5d357bb42f6d1724d1c
|