3
我试图在需要连接到同一项目中的发布/订阅请求订阅的Dataproc集群中运行Spark(scala)作业,但出现错误下面的消息。我认为Dataproc集群中的机器缺少'https://www.googleapis.com/auth/pubsub'范围。在Dataproc集群中启用其他身份验证范围
我可以将其他认证范围添加到Dataproc群集的机器吗?
Exception in thread "main" com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
"code" : 403,
"errors" : [ {
"domain" : "global",
"message" : "Request had insufficient authentication scopes.",
"reason" : "forbidden"
} ],
"message" : "Request had insufficient authentication scopes.",
"status" : "PERMISSION_DENIED"
}
PS:如果需要重新创建集群不会有问题。
谢谢Patrick!该API现在应该做的伎俩。 –