【问题标题】:GCP composer environment settings - source bucketGCP 作曲家环境设置 - 源存储桶
【发布时间】:2020-09-14 08:41:55
【问题描述】:

我正在尝试设置 Cloud Composer 环境 gcs 源存储桶变量。

gcloud composer environments run airflow-composer-project --location us-west1 variables -- --set gcs_source_bucket gs://catalog_image_bucket

该错误表示这是一个临时错误,但可能与我的语法有关。

ERROR: (gcloud.composer.environments.run) HTTPError 502: <!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 502 (Server Error)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/ro
bot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{
background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelog
o_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.c
om/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
  </style>
  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
  <p><b>502.</b> <ins>That’s an error.</ins>
  <p>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.  <ins>That’s all we know.</ins>

【问题讨论】:

  • bucket和Cloud Composer在同一个项目吗?
  • 是的,它使用的是同一个项目。但是我在同一个作曲家项目下启动了两个存储桶(一个用于源,一个用于目标)。我正在尝试为两个存储桶设置变量。

标签: google-cloud-platform google-cloud-composer


【解决方案1】:

要更新变量,您需要使用update command

gcloud composer environments update

运行命令是运行Airflow sub-commands

【讨论】:

    猜你喜欢
    • 2021-10-18
    • 2022-10-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-01
    • 2022-06-27
    • 1970-01-01
    相关资源
    最近更新 更多