【发布时间】:2018-09-21 09:05:33
【问题描述】:
我正在尝试使用谷歌云进行机器学习课程 我按照此页面中的说明进行操作: https://github.com/google/eng-edu/blob/master/ml/cc/README.md
(在 Google Cloud 上运行 Datalab 部分)
我到了第 5 步,我必须将端口更改为 8081
我按照说明进行操作,但出现以下错误:
错误:无法连接到端口 8081 上的 Cloud Shell。
确保您的服务器正在侦听端口 8081,然后重试。
你能告诉我如何解决这个问题吗?
(我在 Windows 10 和 chrome 中工作)
谢谢,
宜兰
以下是我通过激活命令(而不是shell)激活的datalab_create.sh的结果 我激活了 3 个命令:
gcloud 服务启用计算组件
gcloud 服务启用 ml.googleapis.com
./eng-edu/ml/cc/bin/datalab_connect.sh
Welcome to Cloud Shell! Type "help" to get started.
hindy_ilan@windy-hangar-200805:~$ gcloud services enable compute_component
Waiting for async operation operations/tmo-acf.a926e02c-e264-4ec1-b136-094a9efa6916 to complete...
Operation finished successfully. The following command can describe the Operation details:
gcloud services operations describe operations/tmo-acf.a926e02c-e264-4ec1-b136-094a9efa6916
hindy_ilan@windy-hangar-200805:~$
hindy_ilan@windy-hangar-200805:~$ gcloud services operations describe operations/tmo-acf.a926e02c-e264-4ec1-b136-094a9efa6916
done: true
metadata:
'@type': type.googleapis.com/google.api.servicemanagement.v1.OperationMetadata
resourceNames:
- services/compute_component/projectSettings/921211249673
name: operations/tmo-acf.a926e02c-e264-4ec1-b136-094a9efa6916
response:
'@type': type.googleapis.com/google.api.servicemanagement.v1.EnableServiceResponse
hindy_ilan@windy-hangar-200805:~$ gcloud services enable ml.googleapis.com
Waiting for async operation operations/tmo-acf.e8aa5fe8-fbf5-4011-b730-461255f15805 to complete...
Operation finished successfully. The following command can describe the Operation details:
gcloud services operations describe operations/tmo-acf.e8aa5fe8-fbf5-4011-b730-461255f15805
hindy_ilan@windy-hangar-200805:~$ gcloud services operations describe operations/tmo-acf.e8aa5fe8-fbf5-4011-b730-461255f15805
done: true
metadata:
'@type': type.googleapis.com/google.api.servicemanagement.v1.OperationMetadata
resourceNames:
- services/ml.googleapis.com/projectSettings/921211249673
name: operations/tmo-acf.e8aa5fe8-fbf5-4011-b730-461255f15805
response:
'@type': type.googleapis.com/google.api.servicemanagement.v1.EnableServiceResponse
hindy_ilan@windy-hangar-200805:~$ ./eng-edu/ml/cc/bin/datalab_connect.sh
Checking Datalab VM mlccvm-hindyilan exists
ERROR: Datalab VM does not exist
hindy_ilan@windy-hangar-200805:~$
【问题讨论】:
-
有一个github issue,发帖者提出了完全相同的问题。不过那里还有更多上下文,即一个日志文件,它指向与来自
datalab_create.sh的gcloud service-management命令相关的错误。你也遇到这种情况吗?总而言之,我认为您应该放弃脚本,从控制台激活 API,然后自己运行datalab create和datalab connect命令。 -
github 的问题是头脑。我假设谷歌在发布脚本时没有出错,也许我运行它时有问题。我认为最好的方法是清理项目并尝试再次运行它
标签: machine-learning google-cloud-platform google-cloud-datalab