简体   繁体   English

将数据从Google数据存储加载到Google Cloud ML Engine

[英]Load data from Google Datastore to Google Cloud ML Engine

I was trying to run a ML Engine training job reading data from Cloud Datastore, but a got a permission error: 我正在尝试运行ML引擎训练作业,以从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", 

I ran the same script locally and it run well. 我在本地运行了相同的脚本,并且运行良好。 I searched how to add Datastore permission to Cloud ML but didn't find anything... 我搜索了如何向Cloud ML添加数据存储权限,但未找到任何内容...

It's unclear if you are using Cloud ML Engine & Cloud Datastore in the same project, or if you have the Cloud Datastore API enabled. 目前尚不清楚您是在同一项目中使用Cloud ML Engine和Cloud Datastore,还是已启用Cloud Datastore API。 You can probably follow the instructions at https://cloud.google.com/ml-engine/docs/tensorflow/working-with-cloud-storage#setup-different-project to ensure the service account your Cloud ML Engine workload runs as is able to access Cloud Datastore. 您可能可以按照https://cloud.google.com/ml-engine/docs/tensorflow/working-with-cloud-storage#setup-different-project上的说明进行操作,以确保您的Cloud ML Engine工作负载以能够访问Cloud Datastore。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM