【问题标题】:Authentication issue on Google Cloud DatalabGoogle Cloud Datalab 上的身份验证问题
【发布时间】:2018-01-16 18:07:54
【问题描述】:

在以下建议后,我正在使用 docker 在本地运行 Datalab:https://github.com/googledatalab/datalab/wiki/Getting-Started

我正在尝试运行以下测试 sn-p:

%%bq query
#SQL query to return total births by year
SELECT CAST(source_year AS string) AS year, COUNT(is_male) AS birth_count
FROM `publicdata.samples.natality`
GROUP BY year
ORDER BY year DESC
LIMIT 15

但是当我这样做时,我会得到以下信息:

[2018-01-15 14:50:39,126] {_metadata.py:81} INFO - Compute Engine Metadata server unavailable.

"No application credentials found. Perhaps you should sign in."

得到提示后,我在正在运行的 docker 容器上打开了一个 bash 并运行:

gcloud auth application-default login

然后我的用户可以访问具有计费帐户等的项目,并按照身份验证步骤进行操作。消息表明我成功了:

Credentials saved to file: [/root/.config/gcloud/application_default_credentials.json]

These credentials will be used by any library that requests
Application Default Credentials.

但问题仍然存在,同样“未找到应用程序凭据...”

我需要做什么来修复我的数据实验室环境?

【问题讨论】:

    标签: google-cloud-datalab


    【解决方案1】:

    我设法通过右上角登录来解决这个问题。

    【讨论】:

      猜你喜欢
      • 2020-04-28
      • 2017-07-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-14
      • 1970-01-01
      • 1970-01-01
      • 2021-01-13
      相关资源
      最近更新 更多