【发布时间】:2019-08-05 22:22:45
【问题描述】:
我试图运行 ML Engine 训练作业,从 Cloud Datastore 读取数据,但出现权限错误:
line 434, in _end_unary_response_blocking raise _Rendezvous(state, None, None, deadline) grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.PERMISSION_DENIED, Missing or insufficient permissions.)> The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3.5/runpy.py",
我在本地运行了相同的脚本,它运行良好。 我搜索了如何将 Datastore 权限添加到 Cloud ML,但没有找到任何东西...
【问题讨论】:
-
欢迎来到 StackOverflow (SO)!请花时间去stackoverflow.com/help/asking。您应该显示代码和完整的回溯。数据存储区数据是否在同一个 GCP 项目中?
-
您可以通过 gCloud 使用您的凭据,也可以在您的项目中授予对 Cloud ML 服务帐户的数据存储访问权限。我建议你稍后再做。
-
谢谢你们。我为这两种服务使用相同的项目。我试图做第二个选项,但没有找到如何做。最后,我解决了使用 json 文件加载另一个服务帐户并在 python 任务中引用它的问题。
标签: python google-cloud-platform google-cloud-datastore google-cloud-ml