Benjamin Kassentoft
01/17/2023, 12:43 PMpackages-install-path: ../dbt but it still fails. Is there a config somewhere where I need to define the profile
My transformations doesn't contain any special arguments just deps followed by another transformation to run
Any help would be much appreciatedNataly Merezhuk (Airbyte)
01/17/2023, 5:14 PMBenjamin Kassentoft
01/18/2023, 9:23 AMNataly Merezhuk (Airbyte)
01/18/2023, 3:28 PMBenjamin Kassentoft
01/19/2023, 2:49 AMBenjamin Kassentoft
01/19/2023, 2:54 AMNataly Merezhuk (Airbyte)
01/20/2023, 1:49 PM# find automatically latest workspace where normalization was run
NORMALIZE_WORKSPACE=`docker run --rm -i -v airbyte_workspace:/data busybox find /data -path "*normalize/models*" | sed -E "s;/data/([0-9]+/[0-9]+/)normalize/.*;\1;g" | sort | uniq | tail -n 1`
#!/usr/bin/env bash
docker run --rm -i -v airbyte_workspace:/data -w /data/$NORMALIZE_WORKSPACE/normalize --network host --entrypoint /usr/local/bin/dbt airbyte/normalization debug --profiles-dir=. --project-dir=.
More here:
https://docs.airbyte.com/operator-guides/transformation-and-normalization/transformations-with-dbt#validate-dbt-project-settingsBenjamin Kassentoft
01/23/2023, 2:58 AM02:55:30 Running with dbt=1.0.0
dbt version: 1.0.0
python version: 3.9.9
python path: /usr/local/bin/python
os info: Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with-glibc2.31
Using profiles.yml file at /data/normalize/profiles.yml
Using dbt_project.yml file at /data/normalize/dbt_project.yml
Configuration:
profiles.yml file [ERROR not found]
dbt_project.yml file [ERROR not found]
Required dependencies:
- git [OK found]
1 check failed:
dbt looked for a profiles.yml file in /data/normalize/profiles.yml, but did
not find one. For more information on configuring your profile, consult the
documentation:
<https://docs.getdbt.com/docs/configure-your-profile>
If I run it with Airbyte normalization first instead of selecting Raw Data I get this error
02:56:55 Running with dbt=1.0.0
dbt version: 1.0.0
python version: 3.9.9
python path: /usr/local/bin/python
os info: Linux-5.15.79.1-microsoft-standard-WSL2-x86_64-with-glibc2.31
Using profiles.yml file at /data/2/0/normalize/profiles.yml
Using dbt_project.yml file at /data/2/0/normalize/dbt_project.yml
02:56:55 Error importing adapter: No module named 'dbt.adapters.mysql'
Configuration:
profiles.yml file [ERROR invalid]
dbt_project.yml file [OK found and valid]
Required dependencies:
- git [OK found]
1 check failed:
Profile loading failed for the following reason:
Runtime Error
Credentials in profile "normalize", target "prod" invalid: Runtime Error
Could not find adapter type mysql!
Looking at the specific workspace where it was run, I do however see both the profile and the dbt_project file as you can see below
/data/1/0/transform # ls
entrypoint.sh git_repo profiles.yml sshtunneling.sh
/data/1/0/transform # cd git_repo
/data/1/0/transform/git_repo # ls
README.md dbt_project.yml models seeds tests
analyses macros packages.yml snapshots
/data/1/0/transform/git_repo #Nataly Merezhuk (Airbyte)
01/23/2023, 2:42 PMprofiles.yml ?
Found this issue:
https://github.com/airbytehq/airbyte/issues/12465Benjamin Kassentoft
01/24/2023, 3:10 AMuser
01/24/2023, 6:48 PMBenjamin Kassentoft
01/30/2023, 10:43 AMBenjamin Kassentoft
02/07/2023, 3:33 AMNataly Merezhuk (Airbyte)
02/13/2023, 12:26 PMBenjamin Kassentoft
02/14/2023, 3:13 AMBenjamin Kassentoft
02/14/2023, 3:16 AMIlmar Marques
10/22/2023, 4:18 PMairbyte/normalization-mysql:0.4.3 in the transformationIlmar Marques
10/22/2023, 4:19 PM