2 unstable releases
0.2.0 | Jan 9, 2024 |
---|---|
0.1.0 | Dec 31, 2023 |
#2052 in Database interfaces
30 downloads per month
Used in hdfs-fuse
96KB
1.5K
SLoC
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
~6–16MB
~176K SLoC