将数据从Google Datastore加载到Google Cloud ML Engine

问题描述 投票:0回答:1

我正在尝试从Cloud Datastore运行ML Engine培训工作读取数据,但是获得了权限错误:

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", 

我在本地运行相同的脚本,运行良好。我搜索了如何向Cloud ML添加数据存储区权限,但没有找到任何内容......

python google-cloud-platform google-cloud-datastore google-cloud-ml
1个回答
0
投票

目前还不清楚您是否在同一项目中使用Cloud ML Engine和Cloud Datastore,或者您是否启用了Cloud Datastore API。您可以按照https://cloud.google.com/ml-engine/docs/tensorflow/working-with-cloud-storage#setup-different-project上的说明操作,以确保您的Cloud ML Engine工作负载运行的服务帐户能够访问Cloud Datastore。

© www.soinside.com 2019 - 2024. All rights reserved.