我需要什么权限才能从 GCE VM 使用 Google 云机器学习?
What permissions do I need to use Google Cloud Machine Learning from a GCE VM?
我需要什么权限才能从 GCE VM 访问 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 上?
要使用 Cloud Machine Learning API,您需要
项目的编辑权限,以便提交作业、创建模型等...
GCS read/write 权限。
这意味着如果您是 运行 GCE VM 并使用服务帐户
服务帐户应该是您使用 GCE 的项目的编辑器。
- 如果您使用的是默认计算引擎帐户,这将是正确的。
VM 必须使用 GCS read/write 范围创建。
我需要什么权限才能从 GCE VM 访问 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 上?
要使用 Cloud Machine Learning API,您需要
项目的编辑权限,以便提交作业、创建模型等...
GCS read/write 权限。
这意味着如果您是 运行 GCE VM 并使用服务帐户
服务帐户应该是您使用 GCE 的项目的编辑器。
- 如果您使用的是默认计算引擎帐户,这将是正确的。
VM 必须使用 GCS read/write 范围创建。