触发气流的DAG2

发布于 2025-02-03 19:32:52 字数 764 浏览 3 评论 0原文

我正在使用此链接: https://cloud.google。 com/composer/doc/composer-2/触发with-gcf 为了使用airflow2触发dag。

但是我遇到了这个错误:

requests.exceptions.httperror:401客户端错误:未经授权为URL:https://myairflow/api/v1/dags/lmbr-agentGroup-gcs-gcs-gcs-gcs-to-raw/dagruns

在Google材料的链接中提供的代码中提供某种身份验证的位置。

有人面对这个问题并知道如何解决吗?

我在云功能中使用默认用户,即:appengine。之后,我找到了更多信息,并使用此命令列出所有有许可的用户 GCLOUD COMPOSER环境运行MyairFlowenv -location = Southamerica-East1用户 - 列表 而且我在云功能上使用了此用户之一,但是它也不起作用。

相同错误:requests.exceptions.httperror:401客户端错误:未经授权为URL:https:// myairflow/api/v1/dags/mydag/dagruns

I am using this link: https://cloud.google.com/composer/docs/composer-2/triggering-with-gcf in order to trigger a DAG using airflow2.

However I am getting this error:

requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://myairflow/api/v1/dags/lmbr-agentgroup-gcs-to-raw/dagRuns

However there aren't any place to put some kind of authentication in the code provide in the link of google material.

Does anyone faced this problem and know how to fixed?

I was using the default user in cloud function which is: appengine. after that I found more information and use this command to list all user who has permission
gcloud composer environments run myAirflowEnv --location=southamerica-east1 users -- list
and I used one of this user on cloud function, but it didn't work as well.

same error: requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://myAirflow/api/v1/dags/mydag/dagRuns

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文