{"id":20199793,"url":"https://github.com/milenkovicm/testcontainers-minidfs-rs","last_synced_at":"2026-05-08T20:31:41.475Z","repository":{"id":160493058,"uuid":"619846895","full_name":"milenkovicm/testcontainers-minidfs-rs","owner":"milenkovicm","description":"Rust MiniDFS (local HDFS) Testcontainer","archived":false,"fork":false,"pushed_at":"2026-02-06T18:33:54.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-07T04:02:21.476Z","etag":null,"topics":["docker","hdfs","hdfs-dfs","hdfs-docker","rust","testcontainer","testcontainers","testcontainers-rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/milenkovicm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-03-27T14:34:41.000Z","updated_at":"2026-02-06T18:33:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"26391b28-cd44-444d-b547-3c4165e770f3","html_url":"https://github.com/milenkovicm/testcontainers-minidfs-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/milenkovicm/testcontainers-minidfs-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milenkovicm%2Ftestcontainers-minidfs-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milenkovicm%2Ftestcontainers-minidfs-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milenkovicm%2Ftestcontainers-minidfs-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milenkovicm%2Ftestcontainers-minidfs-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milenkovicm","download_url":"https://codeload.github.com/milenkovicm/testcontainers-minidfs-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milenkovicm%2Ftestcontainers-minidfs-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32795861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["docker","hdfs","hdfs-dfs","hdfs-docker","rust","testcontainer","testcontainers","testcontainers-rust"],"created_at":"2024-11-14T04:38:54.578Z","updated_at":"2026-05-08T20:31:41.460Z","avatar_url":"https://github.com/milenkovicm.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Opinionated Single Node HDFS Cluster Testcontainer\n\n[![github action](https://github.com/milenkovicm/testcontainers-minidfs-rs/actions/workflows/basic.yml/badge.svg)](https://github.com/milenkovicm/testcontainers-minidfs-rs/actions/workflows/basic.yml)\n[![Crates.io](https://img.shields.io/crates/v/testcontainers-minidfs-rs)](https://crates.io/crates/testcontainers-minidfs-rs)\n[![Crates.io](https://img.shields.io/crates/d/testcontainers-minidfs-rs)](https://crates.io/crates/testcontainers-minidfs-rs)\n\nOpinionated single node HDFS (DFS) cluster captured in a testcontainer.\n\n```toml\ntestcontainers-minidfs-rs = \"0.4\"\ntestcontainers = \"0.18\"\n```\n\nExample:\n\n```rust, no_run\nuse testcontainers::runners::AsyncRunner;\nuse testcontainers_minidfs_rs::*;\n\n#[tokio::main]\nasync fn main() {\n\n    let container = MiniDFS::runnable();\n    let server_node = container.start().await.unwrap();\n\n    let hdfs_namenode_url = format!(\"hdfs://{}:{}/\", \"localhost\", server_node.get_host_port_ipv4(PORT_NAME_NODE).await.unwrap());\n}\n```\n\nHDFS name node should be available at `hdfs://localhost:9000` and name node http at `http://localhost:8020`.\n\n## Kerberos Support\n\nMiniHDFS can be configured with kerberos support:\n\n```rust, no_run\nuse testcontainers::runners::AsyncRunner;\nuse testcontainers_minidfs_rs::*;\n\n#[tokio::main]\nasync fn main() {\n    let container = MiniDFS::builder().with_kerberos(true).build();\n    let server_node = container.start().await;\n}\n```\n\nMiniDFS will be configured to support kerberos and all required files will be exposed as a docker volume mounted in the target directory.\n\n```rust, no_run\nuse testcontainers::runners::AsyncRunner;\nuse testcontainers_minidfs_rs::*;\n\nlet container = MiniDFS::builder().with_kerberos(true).build();\n// pre-populated kerberos cache file (ccache)\nlet kerberos_cache = container.image().kerberos_cache();\n// kerberos configuration file krb5.conf\nlet kerberos_config = container.image().kerberos_config();\n// hadoop configuration core-site.xml\nlet hdfs_config = container.image().hdfs_config();\n```\n\nAll required files needed for hdfs client setup are exposed. (`kinit` will be executed by the container, kerberos cache will be produced).\n\n## Limitations\n\n- Ports are hardcoded, thus only single instance per host is possible\n- Not many configuration option can be tunned\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilenkovicm%2Ftestcontainers-minidfs-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilenkovicm%2Ftestcontainers-minidfs-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilenkovicm%2Ftestcontainers-minidfs-rs/lists"}