无法更新Google-Cloud-Composer环境变量

时间:2018-11-26 13:06:44

标签: google-cloud-composer

我无法更新已经创建的google-cloud-composer环境。如果我正在使用已经创建的环境,而在创建新环境时则不会发生这种情况。好像我在这里缺少一些默认设置。还有其他人遇到过类似的问题吗?

gcloud composer environments list --locations us-east1
┌───────────────┬──────────┬─────────┬──────────────────────────┐
│      NAME     │ LOCATION │  STATE  │       CREATE_TIME        │
├───────────────┼──────────┼─────────┼──────────────────────────┤
│ dummy-airflow │ us-east1 │ RUNNING │ 2018-11-21T09:50:19.793Z │
└───────────────┴──────────┴─────────┴──────────────────────────┘
cloud composer environments update dummy-airflow 
--location us-east1 --update-env-variables gcp_project=data-rubrics
Waiting for [projects/data-rubrics/locations/us-east1/environments/dummy-airflow] to be updated with [projects/data-rubrics/locations/us-
east1/operations/b6746709-1529-4d67-a08c-453de1a0063a]...failed.                                                                         
ERROR: (gcloud.composer.environments.update) Error updating [projects/data-rubrics/locations/us-east1/environments/dummy-airflow]: Operation [projects/data-rubrics/locations/us-east1/operations/b6746709-1529-4d67-a08c-453de1a0063a] failed: Composer Backend timed out. Currently running tasks are [stage: CP_COMPOSER_AGENT_RUNNING
description: "Composer Agent Running. Latest Agent Stage: stage: PATCH_CREATED\n ."
response_timestamp {
  seconds: 1543236373
  nanos: 570000000
}
].

1 个答案:

答案 0 :(得分:0)

通过执行以下两个步骤解决了该问题:

  1. 禁用然后启用Cloud Composer API;和
  2. 将AIRFLOW_GPL_UNIDECODE设置为是。