| Crates.io | hdfs |
| lib.rs | hdfs |
| version | 0.0.4 |
| created_at | 2015-05-07 17:14:12.221794+00 |
| updated_at | 2015-12-11 23:53:29.779383+00 |
| description | libhdfs binding library and safe Rust APIs |
| homepage | https://github.com/hyunsik/hdfs-rs |
| repository | https://github.com/hyunsik/hdfs-rs.git |
| max_upload_size | |
| id | 2046 |
| size | 139,793 |
libhdfs binding library and rust APIs which safely wraps libhdfs binding APIs
-Pnative)
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
```