我试图用Google Cloud PubSub我Google Cloud Dataproc集群,我收到类似下面的认证范围的错误:与云Dataproc和其他谷歌云产品
{
"code" : 403,
"errors" : [ {
"domain" : "global",
"message" : "Request had insufficient authentication scopes.",
"reason" : "forbidden"
} ],
"message" : "Request had insufficient authentication scopes.",
"status" : "PERMISSION_DENIED"
}
我怎样才能解决这个问题,这样我就可以在Cloud Dataproc上运行的Spark/Hadoop项目中使用PubSub(和其他Google云)产品?