4 releases

Uses old Rust 2015

0.0.4 Oct 8, 2015
0.0.3 Oct 7, 2015
0.0.2 May 7, 2015
0.0.1 May 7, 2015

#1475 in Filesystem

25 downloads per month

Apache-2.0

78KB
1.5K SLoC

Rust 1K SLoC // 0.0% comments C 318 SLoC // 0.1% comments Shell 36 SLoC // 0.1% comments

hdfs-rs

libhdfs binding library and rust APIs which safely wraps libhdfs binding APIs

Current Status

  • Alpha Status (Rust wrapping APIs can be changed)
  • libhdfs C APIs all are ported.
  • Some of Rust wrapping APIs are implemented.

Documentation

Requirements

Usage

Add this to your Cargo.toml:

[dependencies]
hdfs = "0.0.4"

and this to your crate root:

extern crate hdfs;

hdfs-rs uses libhdfs, which is JNI native implementation. JNI native implementation requires the proper CLASSPATH. exec.sh included in the source code root plays a role to execute your program with the proper CLASSPATH. exec.sh requires HADOOP_HOME. So, you firstly set HADOOP_HOME shell environment variable as follows:

export HADOOP_HOME=<hadoop install dir>
```

Then, you can execute your program as follows:

```bash
./exec your_program arg1 arg2
```

Dependencies

~2MB
~30K SLoC