gcloud - Dataproc gcloud default_config 权限被拒绝错误

标签 gcloud google-cloud-dataproc

我们的项目正在使用 dataproc,我已经检查了主和工作计算引擎中指示的服务帐户,它对我的​​存储桶存储具有所需的权限。尽管如此,在日志查看器中,我看到了以下内容:

(gsutil) Failed to create the default configuration. Ensure your have the correct permissions on: [/home/.config/gcloud/configurations]. Could not create directory [/home/.config/gcloud/configurations]: Permission denied. Please verify that you have permissions to write to the parent directory.


我能做些什么来解决这个问题?我应该从这个存储桶下载一些文件并使用 gsutil 来做到这一点。
PS:我尝试使用 action.sh 找出登录用户,结果什么也没有。
PS2:我们正在使用 SparkSession 进行此操作。

最佳答案

gsutil 权限错误与 IAM 权限无关,而是与 Linux 用户权限有关。您可以通过 SSH 连接到 VM 并检查您是否有权创建该文件夹吗?您也可以运行 gsutil ...来测试命令。

关于gcloud - Dataproc gcloud default_config 权限被拒绝错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62671641/

相关文章:

python - gcloud SDK 中的 bq 在虚拟环境中不起作用

gcloud dataproc 集群创建 : No module named jsonschema

apache-spark - Google Dataproc Pyspark - BigQuery 连接器 super 慢

google-cloud-platform - 如何在 GCP 中执行数据沿袭?

python - 从 bazel genrule 调用 gcloud

git - 将文件从 git 传输到谷歌云存储桶

gcloud - 如何通过 gcloud cli args 或环境变量将 secretEnv 指定到 cloudbuild.yaml

python - 如何在 Google App Engine 中运行自定义 python 脚本

python - GCP dataproc with presto - 有没有办法使用 pyhive 通过 python 远程运行查询?

java - Spark 作业与 Google Dataproc 不兼容