简体   繁体   English

更新在GCP中包含bigquery数据集的云部署

[英]Updating cloud deployment which contains bigquery dataset in GCP

I am trying to update a deployment I have made using the GCP deployment manager, however, I get an error saying the datasets in the deployment already exist. 我正在尝试更新使用GCP部署管理器进行的部署,但是,我收到一条错误消息,说该部署中的数据集已经存在。 Is there a way I can tell my deployment to create the dataset when it doesn't exist and do nothing if it does. 有什么方法可以告诉我的部署在不存在时创建数据集,如果存在则什么也不做。 I thought that was the point of the update command. 我认为这就是update命令的重点。 Below is the error I am getting: 以下是我遇到的错误:

code: u'RESOURCE_ERROR'
 location: u'dep23/dataset'
 message: u'Unexpected response from resource of type bigquery.v2.dataset: 409 {"code":409,"errors":[{"domain":"global","message":"Already Exists: Dataset my-project:dataset","reason":"duplicate"}],"message":"Already Exists: Dataset my=project:dataset","statusMessage":"Conflict","requestPath":"https://www.googleapis.com/bigquery/v2/projects/my-project/datasets"}'>

It seems like the resource has to be created by the deployment manager or else you are going to have various issues. 看来资源必须由Deployment Manager创建,否则您将遇到各种问题。 I had to delete my dataset and re-create it using the deployment manager and then it started working. 我必须删除我的数据集,然后使用Deployment Manager重新创建它,然后它才能开始工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM