我目前正在使用Composer版本 2.0.9
和AirFlow版本 2.1.4
运行Google Cloud Composer。我正在尝试安装DBT的最新版本( 1.0.4
for Core和 1.0.0
for BigQuery插件)。由于云堆积器图像已安装了特定的软件包,因此我遇到了矛盾的PYPI依赖性问题。当我尝试解决一个依赖关系时,发生另一个问题。有人知道安装了解决此问题的特定软件包集吗?我已经阅读了社区的以下帖子,但是我想知道是否有人有解决作曲家的解决方案?
如何使用Google Cloud进行DBT作曲家?
I am currently running Google Cloud Composer with a Composer version 2.0.9
and airflow version 2.1.4
. I am trying install the most recent version of dbt (1.0.4
for core and 1.0.0
for the BigQuery plugin). Because cloud composter images has specific packages installed, I am getting conflicting PyPI dependency issues. When I try to fix one dependency another issue occurs. Does anyone know the specific set of packages installed that would resolve this issue? I have read the following posts by the community but I wanted to know if anyone has a solution for just using composer?
How to run DBT in airflow without copying our repo
How to set up dbt with Google Cloud Composer?
发布评论
评论(2)
我能够复制您所看到的行为。以下是我在云构建日志中看到的依赖关系冲突。这些冲突发生在
dbt-core
要求与作曲家中的预安装程序包要求之间发生。预安装的软件包要求:
dbt-core要求:
我尝试降级预安装的软件包,但随后的软件包安装失败,它是也不建议。
因此,我建议使用 您已经链接了。引用@Ryan Yuan在此处的答案中给出的解决方法。
I was able to reproduce the behaviour you are seeing. Below are the dependency conflicts I saw in the Cloud Build logs. These conflicts are occurring between the
dbt-core
requirements and the pre-installed package requirements in Composer.Pre-installed package requirements:
dbt-core requirements:
I tried downgrading the pre-installed packages, but subsequent package installations fail and it is not recommended as well.
Therefore, I would suggest using an external solution as stated in this thread you have linked. Quoting the workarounds given in @Ryan Yuan's answer here.
正如@Kabilan Mohanraj提到的,当前版本的DBT(1.0.4)和最新版的作曲家具有依赖性问题(Composer版本2.0.9和AirFlow版本2.1.4)。因此,需要替代解决方案。就我而言,我玩耍并搜索了社区中其他人的解决方案,发现一个人使用某种版本的作曲家和DBT,而作曲家和DBT只有模仿依赖性问题。但是,正如@Kabilan Mohanraj所提到的,Google不建议降低预装的包装,因此对于生产中的某些东西来说,这将不是可行的解决方案。
不可用的旧版本
通过GCLOUD创建作曲家,使用该特定作曲家版本的Composer UI要求
,您正在降级
JSonschema
从3.2.0
3.1.1
和包装来自
21.3
to20.9
As mentioned by @Kabilan Mohanraj, the current version of dbt (1.0.4) and a more recent version of Composer has dependency issues (Composer version 2.0.9 and Airflow version 2.1.4). Therefore an alternative solution is needed. In my case, I played around and searched for a solution from other people in the community and found one person using a certain version of Composer and dbt that only had mimimal dependency issues. However, as mentioned by @Kabilan Mohanraj, Google does not recommend downgrading preinstalled packages, so this would not be a viable solution for something in production.
create composer through gcloud to use an older version that is not available via the Composer UI
requirements
For this specific composer version, you are downgrading
jsonschema
from3.2.0
to3.1.1
andpackaging
from21.3
to20.9