1 unstable release

0.1.0 Dec 31, 2023

#1564 in Database interfaces


Used in 2 crates (via hdfs-client)

Custom license

25KB

hdfs-client

hdfs client impl with pure rust

features

  • FileReader Read and Seek trait is implemented
  • FileWriter supports create & append mode
use std::io::Read;
use hdfs_client::HDFS;

fn main() {
    let mut fs = HDFS::connect("127.0.0.1:9000", "root").unwrap();
    let mut fd = fs.open("/test/hello.txt").unwrap();
    let mut content = String::new();
    fd.read_to_string(&mut content).unwrap();
    println!("{content}");
}

Dependencies

~4–6MB
~101K SLoC