简体   繁体   English

如何强制删除 dataproc 无服务器批处理

[英]How to force delete dataproc serverless batch

I am running a pyspark dataproc serverless batch.我正在运行 pyspark dataproc 无服务器批处理。 It has been running for too long so I decided to delete it.它已经运行了太久,所以我决定删除它。 But neither the GCP console nor the CLI allow me to delete the batch.但是 GCP 控制台和 CLI 都不允许我删除批处理。

The command I tried is我试过的命令是

gcloud dataproc batches delete <Batch ID> --region=us-central1

I get the following error:我收到以下错误:

ERROR: (gcloud.dataproc.batches.delete) FAILED_PRECONDITION: Cannot delete non terminal batch 'Batch(<project-id/batch-id>)'; current state: 'RUNNING'

gcloud dataproc batches cancel is used to cancel a running batch, while gcloud dataproc batches delete is used to delete the batch resource. gcloud dataproc batches cancel用于取消正在运行的批处理,而gcloud dataproc batches delete用于删除批处理资源。 In this case, you want to use cancel .在这种情况下,您想使用cancel

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

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