Popularity
1.7
Growing
Activity
0.0
Stable
24
2
8

Programming language: Rust
Tags: Distributed Systems     HDFS    
Latest version: v0.0.3
Add another 'HDFS' Package

README

hdfs-rs

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

Current Status

  • Alpha Status (Rust wrapping APIs can be changed)
  • All libhdfs FFI APIs are ported.
  • Safe Rust wrapping APIs to cover some of the libhdfs APIs.

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:

./exec your_program arg1 arg2