Google cloud platform 在与正在运行的作业断开连接后,如何在Google Cloud SDK Shell中再次显示日志?
我在谷歌的机器学习引擎上做一份工作。我从Windows上的Google Cloud SDK外壳发布了此作业。在某个时刻,我关闭了我的笔记本电脑,失去了与谷歌云的连接。与此同时,这项工作一直在谷歌的服务器上运行。现在我已重新打开笔记本电脑并再次连接到互联网,shell已输出:Google cloud platform 在与正在运行的作业断开连接后,如何在Google Cloud SDK Shell中再次显示日志?,google-cloud-platform,stdout,google-cloud-ml,Google Cloud Platform,Stdout,Google Cloud Ml,我在谷歌的机器学习引擎上做一份工作。我从Windows上的Google Cloud SDK外壳发布了此作业。在某个时刻,我关闭了我的笔记本电脑,失去了与谷歌云的连接。与此同时,这项工作一直在谷歌的服务器上运行。现在我已重新打开笔记本电脑并再次连接到互联网,shell已输出: ERROR: (gcloud.ml-engine.jobs.submit.training) There was a problem refreshing your current auth tokens: Unable t
ERROR: (gcloud.ml-engine.jobs.submit.training) There was a problem refreshing your current auth tokens: Unable to find the server at www.googleapis.com
Please run:
$gcloud auth login
to obtain new credentials.
所以我执行了那个命令。浏览器打开了,我点击了我的谷歌账号并进行了验证。然后我看到:
You are now logged in as [my Google e-mail address].
Your current project is [None]. You can change this setting by running:
$ gcloud config set project PROJECT_ID
我也这样做了,然后看到了输出:
Updated property [core/project].
看来一切都正常。在线,在谷歌云控制台中,我可以在作业运行时查看作业日志。然而,我的问题是,是否有可能让这些日志/标准输出再次打印到我的shell中?我猜您正在寻找类似本文所解释的内容 您可以使用日志服务指定首选过滤器,或者,为了在控制台中打印ML引擎作业日志,您可以使用此ML引擎特定命令,以及所需的选项和标志,以便打印作业日志:
gcloud ml-engine jobs stream-logs
您可以在中找到该命令的引用