【发布时间】: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.
但问题仍然存在,同样“未找到应用程序凭据...”
我需要做什么来修复我的数据实验室环境?
【问题讨论】: