Crate hdfs_native
source ·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 hdfs_native::Client;
let client = Client::new("hdfs://ns")?;Optional cargo package features
kerberos- include support for Kerberos authentication. Uses the libgssapi package. Supports all RPC authentication and encryption methods.token- include support for Token authentication. Uses the gsasl native library. Only supports authentication, not integrity or privacy modes.object_store- anobject_storeimplementation for HDFS.rs- support Reed-Solomon codecs for erasure coded reads. It relies on a fork of https://github.com/rust-rse/reed-solomon-erasure with the PR https://github.com/rust-rse/reed-solomon-erasure/pull/108, so you must include apatchfor it to compile:
[patch.crates-io]
reed-solomon-erasure = { git = "https://github.com/Kimahriman/reed-solomon-erasure.git", branch = "SNB/23C24_external_matrix" }
Re-exports
pub use client::Client;pub use client::WriteOptions;