ztdb / hdfs-rs

HDFS binding and wrapper APIs for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hdfs-rs

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

Documentation

Requirements

Usage

Add this to your Cargo.toml:

[dependencies]
hdfs = "0.0.2"

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
```

About

HDFS binding and wrapper APIs for Rust

License:Apache License 2.0


Languages

Language:C 51.2%Language:Rust 47.8%Language:Shell 1.0%