在GCP上运行pyspark作业(使用dataproc 1.4),我正在尝试从GCP存储中读取数据。获取以下错误: from google.cloud import storage
File "/opt/conda/default/lib/python3.6/site-packages/google/cloud/storage/__init__.py", line 38, in <module>
from google.cloud.storage.blob import Blob
File "/opt/conda/default/l
我正在尝试将文件从云桶传输到VM。我正在犯以下错误:
ServiceException: 401 Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object.
如何解决这一问题?
我正在尝试自动压缩上传到云存储桶上的图像。每次上传图像时,我都希望云函数运行python代码,将其转换为gzip,并将其移动到存储中的另一个桶中。
我的代码没有运行。这给了我文件找不到错误。另外,给出完整位置的正确方法是什么。
我的代码是..。
from google.cloud import storage
import gzip
import shutil
client = storage.Client()
def hello_gcs(event, context):
"""Triggered by a change to a Cloud Storage
我正在尝试通过cloudstorage api从Google Cloud Storage中删除一个文件(视频),但尽管该文件存在,我仍收到以下错误:
cloudstorage.delete('/catchamove-video/products/6411421952770048.mp4')
*** NotFoundError: Expect status [204] from Google Storage. But got status 404.
Path: '/catchamove-video/products/6411421952770048.mp4'.
我正在运行一个Node.js脚本来获取Google Cloud Storage上存储桶中的文件数。
在一个包含大约30K文件的存储桶中,我在几秒钟内就得到了结果。在一个包含大约300K文件的存储桶中,我得到以下错误:
<--- Last few GCs --->
[10508:0000014DB738ADB0] 2053931 ms: Mark-sweep 1400.6 (1467.7) -> 1400.6 (1437.2) MB, 1292.2 / 0.0 ms (+ 0.0 ms in 0 steps since start of marking, bigges
我正在尝试Node.js将多个文件从我的Google Compute Engine VM本地目录上传到我已经创建的GCS存储桶中。每次运行脚本时,我都会收到以下错误。
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type function
脚本:
`// Imports the Google Cloud client library
const {Storage} = require('@google-cloud/storage'
我正试图用python从kubernetes上的一个吊舱中得到一个关于gcp的桶。
现在,该pod上的服务帐户具有存储管理的角色,但出于某种原因,在尝试访问该桶时,我仍然会遇到异常。
IAM:
📷
错误日志:
google.api_core.exceptions.Forbidden: 403 GET https://www.googleapis.com/storage/v1/b/<bucket_name>?projection=noAcl: 874<principal> does not have storage.buckets.get access to the Go
我正在尝试找出服务帐户将文件写入GCS存储桶所需的最小权限集。我想我可以使用storage.objectAdmin,但是使用为Python SDK提供的示例代码失败,并显示一个错误:my-service-account@my-project.googleapis.com does not have storage.buckets.get access to my-bucket
client = _get_storage_client()
bucket = client.bucket(current_app.config['CLOUD_STORAGE_BUCKET'])
blob
我正在尝试在Google Cloud Storage中创建一个公共存储桶,但是我收到了这个错误:
Error
Sorry, there’s a problem. If you entered information, check it and try again. Otherwise, the problem might clear up on its own, so check back later.
Tracking Number: 8176737072451350548
Send feedback
我正在将权限发送给角色StorageObjectViewer的allUsers。我直接