GNU/Linux users can use
arv-mount or Gnome to mount Keep as a file system in order to access Arvados collections using traditional filesystem tools.
arv-mount provides a file system view of Arvados Keep using File System in Userspace (FUSE). You can browse, open and read Keep entries as if they are regular files, and existing tools can access files in Keep. Data is streamed on demand. It is not necessary to download an entire file or collection to start processing.
The default mode permits browsing any collection in Arvados as a subdirectory under the mount directory. To avoid having to fetch a potentially large list of all collections, collection directories only come into existence when explicitly accessed by UUID or portable data hash. For instance, a collection may be found by its content hash in the
~$ mkdir -p keep
~$ arv-mount keep
~$ cd keep/by_id/c1bad4b39ca5a924e481008009d94e32+210
~/keep/by_id/c1bad4b39ca5a924e481008009d94e32+210$ md5sum var-GS000016015-ASM.tsv.bz2
~/keep/by_id/c1bad4b39ca5a924e481008009d94e32+210$ cd ../..
~$ fusermount -u keep
The last line unmounts Keep. Subdirectories will no longer be accessible.
In the top level directory of each collection, arv-mount provides a special file called
.arvados#collection that contains a JSON-formatted API record for the collection. This can be used to determine the collection’s
uuid, etc. This file does not show up in
By default, all files in the Keep mount are read only. However,
arv-mount --read-write enables you to perform the following operations using normal Unix command line tools (
rmdir) and your own programs using standard POSIX file system APIs:
rmdir in a project directory)
If multiple clients (separate instances of arv-mount or other arvados applications) modify the same file in the same collection within a short time interval, this may result in a conflict. In this case, the most recent commit wins, and the “loser” will be renamed to a conflict file in the form
Please note this feature is in beta testing. In particular, the conflict mechanism is itself currently subject to race conditions with potential for data loss when a collection is being modified simultaneously by multiple clients. This issue will be resolved in future development.
As an alternative to
arv-mount you can also access the WebDAV mount through the Gnome File manager.
davs://collections.ClusterID.example.com/ When prompted for credentials, enter username “arvados” and a valid Arvados token in the
The content of this documentation is licensed under the
Commons Attribution-Share Alike 3.0 United States licence.
Code samples in this documentation are licensed under the Apache License, Version 2.0.