触发气流的DAG2
我正在使用此链接: 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论