我试图在一个Dataproc集群中运行一个Spark (scala)作业,它需要连接到同一个项目中的Pub/Sub请求订阅,但是我得到了下面的错误消息。我猜想我的Dataproc集群中的机器缺少一个“https://www.googleapis.com/auth/pubsub”范围。
我是否可以向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:如果有必要的话,重新创建集群不会有问题。
发布于 2015-10-19 23:49:20
自定义服务帐户作用域目前可以在云Dataproc API中指定,但不能在Cloud或开发人员控制台中指定。它们应该在下周左右的Cloud中公开。
在任何情况下,都需要使用指定的范围重新创建集群。
https://stackoverflow.com/questions/33224617
复制相似问题