gpt4 book ai didi

google-cloud-storage - 使用 gcsfuse 看不到使用 gsutil 写入的数据

转载 作者:行者123 更新时间:2023-12-01 09:54:30 24 4
gpt4 key购买 nike

我已经安装了 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 在您已经看到的目录(例如根目录)中写入一个对象时,它会显示吗?

您可以通过以下两种方式之一解决此问题:

  1. 为您缺少的目录创建目录占位符。为丢失的对象 foo/bar/baz 执行此操作的最简单方法是使用 gcsfuse 挂载:

    mkdir -p foo/bar
  2. 使用 --implicit-dirs 标志运行 gcsfuse。不过,请务必阅读上面链接的文档以了解注意事项。

关于google-cloud-storage - 使用 gcsfuse 看不到使用 gsutil 写入的数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31083715/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com