Crate hdfs_native

Source
Expand description

Native HDFS client implementation in Rust

§Usage

Create a client to a single NameNode

use hdfs_native::ClientBuilder;
let client = ClientBuilder::new().with_url("hdfs://localhost:9000").build().unwrap();

Create a client for a Name Service

use hdfs_native::ClientBuilder;
let client = ClientBuilder::new()
    .with_url("hdfs://ns")
    .with_config(vec![
        ("dfs.ha.namenodes.ns", "nn-1,nn-2"),
        ("dfs.namenode.rpc-address.ns.nn-1", "nn-1:9000"),
        ("dfs.namenode.rpc-address.ns.nn-2", "nn-2:9000"),
    ])
    .build()
    .unwrap();

Re-exports§

pub use client::WriteOptions;
pub use client::Client;
pub use client::ClientBuilder;

Modules§

acl
client
file

Enums§

HdfsError

Type Aliases§

Result