Skip to content

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

Open
@diqiu50

Description

@diqiu50

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

Metadata

Metadata

Assignees

Labels

epicKey feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions