yml 文件的 DBT 问题:profiles.yml 中的配置文件 my-bigquery-db 为空
DBT problem with yml file: Profile my-bigquery-db in profiles.yml is empty
我正在学习 DBT hello world 教程 found here,我已经在 windows 机器上创建了我的第一个项目。我的 profiles.yml
文件如下所示:
my-bigquery-db:
target: dev
outputs:
dev:
type: bigquery
method: service-account
project: abiding-operand-286102
dataset: xxxDBTtestO1
threads: 1
keyfile: C:\Users\xxx\.dbt\abiding-operand-286102-ed9e3c9c13cd.json
timeout_seconds: 300
当我执行 dbt run
时,我得到:
Running with dbt=0.17.2 Encountered an error while reading profiles: ERROR Runtime Error
dbt 在尝试读取您的 profiles.yml 时遇到错误
文件。
profiles.yml 中的配置文件 my-bigquery-db 为空
定义的配置文件:
- 我的-bigquery-db
- 目标
- 产出
- 发展
- 类型
- 方法
- 项目
- 数据集
- 线程
- 密钥文件
- timeout_seconds
有什么想法吗?
乍一看,从您的代码和源代码演练来看,这只是一个 yml
配置问题。 YML 是一种标记语言white-space sensitive。通过查看您可能从中提取的示例 - 它对我来说看起来不合适。
我不确定你是否可以简单地从下面复制,但它可能值得一试。
my-bigquery-db:
target: dev
outputs:
dev:
type: bigquery
method: service-account
project: abiding-operand-286102
dataset: xxxDBTtestO1
threads: 1
keyfile: C:\Users\xxx\.dbt\abiding-operand-286102-ed9e3c9c13cd.json
timeout_seconds: 300
基本上 - 您的 dbt
profile.yml
需要设置某些级别的部分(与 python 缩进或任何其他白色间距方案不同)。
我正在学习 DBT hello world 教程 found here,我已经在 windows 机器上创建了我的第一个项目。我的 profiles.yml
文件如下所示:
my-bigquery-db:
target: dev
outputs:
dev:
type: bigquery
method: service-account
project: abiding-operand-286102
dataset: xxxDBTtestO1
threads: 1
keyfile: C:\Users\xxx\.dbt\abiding-operand-286102-ed9e3c9c13cd.json
timeout_seconds: 300
当我执行 dbt run
时,我得到:
Running with dbt=0.17.2 Encountered an error while reading profiles: ERROR Runtime Error
dbt 在尝试读取您的 profiles.yml 时遇到错误 文件。
profiles.yml 中的配置文件 my-bigquery-db 为空
定义的配置文件:
- 我的-bigquery-db
- 目标
- 产出
- 发展
- 类型
- 方法
- 项目
- 数据集
- 线程
- 密钥文件
- timeout_seconds
有什么想法吗?
乍一看,从您的代码和源代码演练来看,这只是一个 yml
配置问题。 YML 是一种标记语言white-space sensitive。通过查看您可能从中提取的示例 - 它对我来说看起来不合适。
我不确定你是否可以简单地从下面复制,但它可能值得一试。
my-bigquery-db:
target: dev
outputs:
dev:
type: bigquery
method: service-account
project: abiding-operand-286102
dataset: xxxDBTtestO1
threads: 1
keyfile: C:\Users\xxx\.dbt\abiding-operand-286102-ed9e3c9c13cd.json
timeout_seconds: 300
基本上 - 您的 dbt
profile.yml
需要设置某些级别的部分(与 python 缩进或任何其他白色间距方案不同)。