问题描述
我正在向使用gcloud Dataproc进行重新索引的API发送请求。我正在发送一个要求给我回复的请求
io.grpc.StatusRuntimeException:NOT_FOUND:找不到:群集项目/ go-dev-central / regions / us-central1 / clusters / cluster-156c
gcloud的新手不知道我应该去哪里研究。可以是地区/区域问题吗?
Suppressed: com.google.api.gax.rpc.AsyncTaskException: Asynchronous task Failed
at com.google.api.gax.rpc.ApiExceptions.callAndTranslateApiException(ApiExceptions.java:57)
at com.google.api.gax.rpc.UnaryCallable.call(UnaryCallable.java:112)
at com.google.cloud.dataproc.v1.JobControllerClient.submitJob(JobControllerClient.java:210)
at com.google.cloud.dataproc.v1.JobControllerClient.submitJob(JobControllerClient.java:183)
at com.carecloud.edison.commons.providers.gcp.GoogleDataProcProvider.$anonfun$submitDataProcJob$1(GoogleDataProcProvider.scala:59)
at com.carecloud.edison.commons.providers.gcp.GoogleDataProcProvider.withJobControllerClientSync(GoogleDataProcProvider.scala:39)
at com.carecloud.edison.commons.providers.gcp.GoogleDataProcProvider.$anonfun$withJobControllerClient$1(GoogleDataProcProvider.scala:27)
at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:658)
at scala.util.Success.$anonfun$map$1(Try.scala:255)
at scala.util.Success.map(Try.scala:213)
Caused by: io.grpc.StatusRuntimeException: NOT_FOUND: Not found: Cluster projects/go-dev-central/regions/us-central1/clusters/cluster-156c
at io.grpc.Status.asRuntimeException(Status.java:533)
at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:490)
at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
at io.grpc.internal.CensusstatsModule$StatsClientInterceptor$1$1.onClose(CensusstatsModule.java:700)
at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
at io.grpc.internal.CensusTracingModule$TracingClientInterceptor$1$1.onClose(CensusTracingModule.java:399)
2020-08-31 04:33:49,568 [ERROR] c.ReindexController - General Service Error: io.grpc.StatusRuntimeException: NOT_FOUND: Not found: Cluster projects/go-dev-central/regions/us-central1/clusters/cluster-156c
解决方法
最可能的解释是,即使您将代码配置为使用“ us-central1”,即使将其放置在us-central1内的GCE区域中,也使用了单独的“全局”多区域来创建群集“区域Dataproc宇宙。
有关差异的更多详细信息,请参见https://cloud.google.com/dataproc/docs/concepts/regional-endpoints。较高的层次是“全局”是一个独立的Dataproc宇宙,就像每个不同的区域宇宙(例如“ us-central1”,“ europe-west1”等)一样;它们彼此隔离。
如果在Cloud Console中查看“集群”列表页面,则可以看到集群所在的集群,因为应该有一列指示正在使用的Dataproc区域。