- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经安装了 gcsfuse 以支持需要类似 posix 挂载点的应用。
使用 gsutil 写入的现有数据不可见,但通过浏览器(Cloud Storage > Storage Browser)写入的数据可见。
根据 https://cloud.google.com/storage/docs/gcsfuse -
You can simultaneously read and write to Google Cloud Storage using the Fuse Adapter and tools like gsutil. For example, if you write an object using the Fuse Adapter, it will immediately be available to read with gsutil, or vice versa, without the need to re-mount the bucket or reboot the Compute Engine instance.
有没有人成功地与 gcsfuse 和 gsutil 合作?
我觉得我错过了什么。
谢谢!
最佳答案
这可能是因为 gsutil 不创建目录占位符对象,默认情况下 gcsfuse requires them为了使目录可见。确认一下:当您使用 gsutil 在您已经看到的目录(例如根目录)中写入一个对象时,它会显示吗?
您可以通过以下两种方式之一解决此问题:
为您缺少的目录创建目录占位符。为丢失的对象 foo/bar/baz
执行此操作的最简单方法是使用 gcsfuse 挂载:
mkdir -p foo/bar
使用 --implicit-dirs
标志运行 gcsfuse。不过,请务必阅读上面链接的文档以了解注意事项。
关于google-cloud-storage - 使用 gcsfuse 看不到使用 gsutil 写入的数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31083715/
我尝试运行下一个命令 python c:\gsutil\gsutil ls 但我收到错误 Could not acquire lock c:\gsutil\.gsutil\credcache.lock
我想列出不以特定前缀开头的文件。我可以像这样列出它们: gsutil ls gs://my_bucket/my_prefix* 我该怎么做呢? 最佳答案 做你所说的唯一方法是列出桶并在本地机器上过滤结
我想列出不以特定前缀开头的文件。我可以像这样列出它们: gsutil ls gs://my_bucket/my_prefix* 我该怎么做呢? 最佳答案 做你所说的唯一方法是列出桶并在本地机器上过滤结
我想在 s3 和 gs 之间同步一个包含 100M 文件的存储桶。我有一个 c3.8xlarge 实例并快速试运行: $ time gsutil -m rsync -r -n s3://s3-buck
我正在运行以下命令,在加载新文件之前从 gcs 存储桶中删除文件。 gsutil -m rm gs://mybucket/subbucket/* 如果存储桶中没有文件,则会抛出“CommandExce
我有一个 GCS 存储桶,其中包含路径中的一些文件 gs://main-bucket/sub-directory-bucket/object1.gz 我想以编程方式检查子目录桶是否包含一个特定文件。我
我正在尝试使用 gsutil mb 命令创建一个存储桶: gsutil mb -c DRA -l US-CENTRAL1 gs://some-bucket-to-my-gs 但我收到此错误消息: Cr
我正在尝试在我的 Macbook Pro 上安装 Google Cloud SDK。如果我尝试,请遵循 https://cloud.google.com/storage/docs/gsutil_ins
大家好,我正在使用 GCE,现在我是存储桶的新手。我的另一个桶上有很多照片。我尝试将其复制为 sudo gsutil cp -R dir dir 我花了 30 分钟仍未完成文件复制,所以我尝试了使用
我正在尝试提出命令,以使用 gsutil 在我的 GCP 项目中促进部署到不同环境(生产、暂存)。 以下部署到生产没有问题: gsutil cp -r ./build/* gs:/// 我想部署到另一
gsutil cp -r gs://mybucetid/stats/installs/installs_com.appdomain_YYYYMM_overview.csv /home/ubuntu/a
问候 StackOverflow, 我正在 Windows 上开发一个小项目,它需要读取 GSUTIL 的复制功能的输出。问题是,复制功能的输出似乎无法通过标准输出工作。此外,GSUTIL 的行为是不
我希望在 Google 存储桶和我的本地目录之间同步内容。我想在执行此操作时忽略某些文件。 就像我想忽略以country.csv和version.csv结尾的文件一样。 所以我使用以下正则表达式,但它
我在项目中设置了一个存储桶来存储上传的文件。试图确保我可以使用将文件上传到失败的存储桶的测试节点程序写入存储桶。然后我尝试使用 gsutil 将文件复制到存储桶,然后它会重试直到超时。经过进一步调查,
我正在尝试使用以下命令将数千个文件上传到 Google Cloud Storage: gsutil -m cp *.json gs://mybucket/mydir 但是我得到这个错误: -bash:
我觉得我设置的一切都正确。我关注了这些 instructions . 并从 tar 文件安装。 我的主目录现在有一个文件夹“gsutil”。我完成了配置,为 oauth2 设置了我的应用程序,并且能够
我正在开发一个unix shell脚本,它将文件从GCS下载到我的服务器上。我正在使用该命令,它运行得很好。 python gsutil -m cp -R gs://$bucketId/*$fileL
我必须从文件列表中搜索 2 个文件。 我必须搜索的 2 个文件的格式为 googlea_1234_20151208.txt 和 googleb_7654_20151208.txt,因此我正在考虑基于关
我已经使用 gcloud 和 gsutil 一段时间了,但现在我运行的任何 gsutil 命令突然出现错误: Traceback (most recent call last): File "/Us
我想从我的 Android 应用中导出评分和评论。 我关注了 gsutil instructions我可以在我的电脑上安装 gsutil,然后我尝试导出我的评分,如下所示 gsutil cp -r g
我是一名优秀的程序员,十分优秀!