我们的项目正在使用 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/