如何在DBT中设置profiles.yml和dbt_project.yml文件的位置?
How to set location of profiles.yml and dbt_project.yml files in DBT?
运行 dbt debug --config-dir
显示的位置不正确。
例如)
12:35:52 Running with dbt=1.0.3
12:35:52 To view your profiles.yml file, run:
open /The/wrong/directory
如何告诉 DBT 我已经移动了 profiles.yml
和 dbt_profile.yml
文件?
dbt run --help
表明有两个标志用于此特定目的。
--project-dir PROJECT_DIR
Which directory to look in for the dbt_project.yml file. Default is the current working directory and its parents.
--profiles-dir SUB_PROFILES_DIR
Which directory to look in for the profiles.yml file. Default = /Users/username/.dbt
您想要 运行 的命令是:
dbt run --project-dir /path/to/new/dbt_project.yml_file --profiles-dir /path/to/new/profiles.yml_file
运行 dbt debug --config-dir
显示的位置不正确。
例如)
12:35:52 Running with dbt=1.0.3
12:35:52 To view your profiles.yml file, run:
open /The/wrong/directory
如何告诉 DBT 我已经移动了 profiles.yml
和 dbt_profile.yml
文件?
dbt run --help
表明有两个标志用于此特定目的。
--project-dir PROJECT_DIR
Which directory to look in for the dbt_project.yml file. Default is the current working directory and its parents.
--profiles-dir SUB_PROFILES_DIR
Which directory to look in for the profiles.yml file. Default = /Users/username/.dbt
您想要 运行 的命令是:
dbt run --project-dir /path/to/new/dbt_project.yml_file --profiles-dir /path/to/new/profiles.yml_file