【问题标题】:What permissions do I need to use Google Cloud Machine Learning from a GCE VM?从 GCE 虚拟机使用 Google Cloud Machine Learning 需要哪些权限?
【发布时间】:2016-10-08 04:05:58
【问题描述】:

我需要哪些权限才能从 GCE 虚拟机访问 Google Cloud Machine Learning?

我按照说明运行了检查环境脚本,但收到关于身份验证范围不足的错误

curl https://storage.googleapis.com/cloud-ml/scripts/check_environment.py | python
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3802  100  3802    0     0  31451      0 --:--:-- --:--:-- --:--:-- 31683
Your active configuration is: [default]

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   138    0   138    0     0    973      0 --:--:-- --:--:-- --:--:--   978
ERROR: Unable to list Cloud ML models: {
  "error": {
    "code": 403,
    "message": "Request had insufficient authentication scopes.",
    "status": "PERMISSION_DENIED"
  }
}

我在使用默认计算服务帐户的 GCE VM 上运行?

【问题讨论】:

    标签: google-cloud-ml


    【解决方案1】:

    要使用您需要的 Cloud Machine Learning API

    1. 项目的编辑权限,以便提交作业、创建模型等...

    2. GCS 读/写权限。

    这意味着如果您正在运行 GCE 虚拟机并使用服务帐户

    1. 服务帐户应该是您在 GCE 中使用的项目的编辑器。

      • 如果您使用的是默认计算引擎帐户,这将是正确的。
    2. 必须使用 GCS 读/写范围创建 VM。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-05-22
      • 2014-08-28
      • 1970-01-01
      • 2019-10-23
      • 2013-01-18
      • 2019-11-28
      • 2015-12-28
      相关资源
      最近更新 更多