Expand description
Native HDFS client implementation in Rust
§Usage
Create a client to a single NameNode
use hdfs_native::Client;
let client = Client::new("hdfs://localhost:9000")?;
Create a client for a Name Service
use std::collections::HashMap;
use hdfs_native::Client;
let config = HashMap::from([
("dfs.ha.namenodes.ns".to_string(), "nn-1,nn-2".to_string()),
("dfs.namenode.rpc-address.ns.nn-1".to_string(), "nn-1:9000".to_string()),
("dfs.namenode.rpc-address.ns.nn-2".to_string(), "nn-2:9000".to_string()),
]);
let client = Client::new_with_config("hdfs://ns", config)?;
Re-exports§
pub use client::Client;
pub use client::WriteOptions;