{"id":21702413,"url":"https://github.com/aphp/py-hdfs-mount","last_synced_at":"2025-07-18T11:31:19.711Z","repository":{"id":45171281,"uuid":"127443637","full_name":"aphp/py-hdfs-mount","owner":"aphp","description":"Mount HDFS with fuse, works with kerberos!","archived":false,"fork":false,"pushed_at":"2021-05-26T14:09:11.000Z","size":16,"stargazers_count":17,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-16T07:06:11.093Z","etag":null,"topics":["fuse","hadoop","hdfs","kerberos","mount","mount-hdfs"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-30T15:30:45.000Z","updated_at":"2023-05-03T09:51:06.000Z","dependencies_parsed_at":"2022-07-13T18:21:37.394Z","dependency_job_id":null,"html_url":"https://github.com/aphp/py-hdfs-mount","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aphp%2Fpy-hdfs-mount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aphp%2Fpy-hdfs-mount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aphp%2Fpy-hdfs-mount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aphp%2Fpy-hdfs-mount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aphp","download_url":"https://codeload.github.com/aphp/py-hdfs-mount/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226400499,"owners_count":17619190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fuse","hadoop","hdfs","kerberos","mount","mount-hdfs"],"created_at":"2024-11-25T21:15:31.163Z","updated_at":"2024-11-25T21:15:31.815Z","avatar_url":"https://github.com/aphp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Requirements\n\nPython 3\n\n### Install\n\n```\nsudo apt-get install fuse libfuse2\n```\n\n```\npip3 install -r requirements.txt\n```\n\nIf you will be using kerberos, install libkrb5-dev:\n\n```\nsudo apt-get install libkrb5-dev\n```\n\n### Configuration\n\n```\ncp example.config.yaml config.yaml\n$EDITOR config.yaml\n```\n\n### Running\n\nIf you are using kerberos, run a kinit:\n\n```\nkinit -kt $USER $USER@REALM\n```\n\nIn all cases you then will have to create a new empty directory that with be the mount point:\n\n```\nmkdir /mnt/dest_mount\n```\n\nAnd finaly you can run py-hdfs-fuse:\n\n```\npython3 hdfs_mount.py [--loglevel LEVEL] config.yaml\n```\n\nHave fun!\n\nNote: if anything goes wrong and you have to kill py-hdfs-mount, you will probably have to run this command on the mounted folder to unlock it:\n\n```\nfusermount -u /mnt/dest_mount\numount -l /mnt/dest_mount\n```\n\n\n### Tested with\n\n\n* [x] Vim (open file, edit randomly, save and close)\n* [x] cp/mv\n\n### Functionnalities\n\n\n* [x] Cached writes (HDFS is an immutable FS (so writes=delete+insert))\n* [x] Random writes (slow - because of the immutability of HDFS - but working!)\n* [x] Very fast ls (cached directory metadata)\n* [ ] directory stored as a zip file in HDFS (to solve small files problem)\n* [ ] directory stored as a avro file in HDFS (to solve small files problem)\n* [ ] CRC32 checksum\n* [x] Load options from configuration file\n\n\n### Implemented FUSE methods\n\n#### Basic\n* [ ] access\n* [x] chmod\n* [ ] chown\n* [x] getattr\n* [x] readdir\n* [ ] readlink\n* [ ] mknod\n* [x] rmdir\n* [x] mkdir\n* [ ] statfs\n* [ ] unlink\n* [ ] symlink\n* [x] rename\n* [ ] link\n* [x] utimens\n\n#### File methods\n\n* [x] open\n* [x] create\n* [x] read\n* [x] write (caching is done in memory)\n* [x] truncate\n* [x] flush (writes the in memory written chunks to a temporary file in the local FS in the right order and calls fsync)\n* [x] fsync (send the temporary file to HDFS)\n* [x] release\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faphp%2Fpy-hdfs-mount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faphp%2Fpy-hdfs-mount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faphp%2Fpy-hdfs-mount/lists"}