Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

MWAA integration looking for dbt_project.yml in subdirectories #57

Open
giacomorognoni opened this issue Feb 13, 2022 · 1 comment
Open

Comments

@giacomorognoni
Copy link

Hello all!

I am trying to integrate MWAA with Airflow-DBT and for some reason when using the DBT run operator, DBT initially looks for the DBT_Project.yml file in the initial dbt directory (/usr/local/airflow/dags/dbt/dbt_project.yml) as defined using the dir variable. However, it then proceeds to search all subdirectories for the dbt_projects.yml file and resulting in the following error:

[2022-02-13 15:42:52,016] {{dbt_hook.py:130}} INFO - Failed to read package: Runtime Error
[2022-02-13 15:42:52,016] {{dbt_hook.py:130}} INFO - no dbt_project.yml found at expected path /usr/local/airflow/dags/dbt/snapshots/dbt_project.yml

Any idea why airflow-dbt searches for dbt_project.yml in the snapshots folder after having found it in the parent folder?

Thank you for all your help!!

@RafalSiwek
Copy link
Contributor

RafalSiwek commented Jun 21, 2022

Hi @giacomorognoni,
using the operator, have you set the profiles_dir parameter with the path to the directory where the dbt_project.yml is located?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants