Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EPIC] Implement GVFS fuse tools to access Gravitino file sets in the POSIX Protocol #5504

Open
4 of 20 tasks
diqiu50 opened this issue Nov 7, 2024 · 0 comments
Open
4 of 20 tasks
Assignees
Labels
epic Key feature

Comments

@diqiu50
Copy link
Contributor

diqiu50 commented Nov 7, 2024

Describe the proposal

Implement GVFS fuse tools to access Gravitino file sets in the POSIX Protocols
Documents for Gvfs fuse

How to use it in python:

# init fileset
fs_context = gvfs.fs.context(server_uri="http://localhost:8090", metalake_name="test_metalake", properties=config_gv)
fileset = fs_context.createFileset(path="fileset/test_catalog/schema1/ai_fileset", properties=config_fs)

# mount dir
root_dir = fileset.getRoot()
mount_dir = "/mnt/myfileset"
gvfs.util.mount(root_dir, mount_dir, properties=fileset.config())

# read file in the mounted directory
file_f = read(mountdir + "/0567/a.txt")
print(file_f.readToString())

# unmount
gvfs.util.unmount(mount_dir)

How to use it in command line:

#mount
gvfsutil mount --gvfs_path gvfs://fileset/test_catalog/schema1/ai_fileset --mount_path /mnt/ai_fileset --config /tmp/gvfs.config 

#unmount
gvfsutil unmount /mnt/fileset/test_catalog/schema1/ai_fileset

Task list

Task list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic Key feature
Projects
None yet
Development

No branches or pull requests

1 participant