2015-10-19 133 views
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:如果需要重新创建集群不会有问题。

回答

3

自定义服务帐户范围当前可在Cloud Dataproc API中指定,但不能在Cloud SDK或Developer Console中指定。他们应该在下周左右在Cloud SDK中公开。

无论如何,您将需要重新创建指定范围的集群。

+1

谢谢Patrick!该API现在应该做的伎俩。 –

相关问题