我正在尝试将Google Cloud PubSub与我的Google Cloud 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 Cloud)产品?