作曲家不使用导入变量
我导入一个 json 文件,该文件定义了作曲家要使用的变量。
我使用了 gcloud beta Composer 环境存储数据导入 命令,我可以看到文件已正确导入到
I import a json file that define variables to be used by composer.
I used the gcloud beta composer environments storage data import command, I can see that the file is imported correctly to the <composer_bkt>/data/variables, however, when I accessed to airflow webUI, I find that there is no variable declared !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将文件移动到
/data/variables
本身不足以将变量导入 Airflow。除此之外,您还需要运行 Airflow CLI 命令< /a>:要在 Composer 中执行此操作,您必须按所述运行以下命令 此处:
Moving the file to to
<COMPOSER_BCKT>/data/variables
is not enough by itself to import the variables to Airflow. Apart from that you need to run the Airflow CLI command:To do that in Composer you have to run the following command as described here:
感谢您的回答@itroulli。看来我的作曲家版本(v2.2.5)在该命令上失败了,但这种形式的命令有效:
我将把这个留给遇到此问题的其他人
Thank you for the answer @itroulli. It appears that my composer version (v2.2.5) failed on that command, but instead a command of this form worked:
I'll leave this for anyone else that comes across this problem