Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hyunsik/hdfs-rs
libhdfs binding and wrapper APIs for Rust
https://github.com/hyunsik/hdfs-rs
Last synced: 7 days ago
JSON representation
libhdfs binding and wrapper APIs for Rust
- Host: GitHub
- URL: https://github.com/hyunsik/hdfs-rs
- Owner: hyunsik
- License: apache-2.0
- Created: 2015-05-06T18:30:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-08T09:29:28.000Z (about 9 years ago)
- Last Synced: 2024-08-01T03:28:48.029Z (3 months ago)
- Language: Rust
- Homepage:
- Size: 2.16 MB
- Stars: 33
- Watchers: 2
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-rust-cn - hyunsik/hdfs-rs - ci.org/hyunsik/hdfs-rs.svg?branch=master">](https://travis-ci.org/hyunsik/hdfs-rs) (Libraries / Distributed systems)
- awesome-rust - hyunsik/hdfs-rs - ci.org/hyunsik/hdfs-rs.svg?branch=master">](https://travis-ci.org/hyunsik/hdfs-rs) (Libraries / Distributed systems)
- awesome-rust - hyunsik/hdfs-rs
- awesome-rust-cn - hyunsik/hdfs-rs
- awesome-rust-zh - hyunsik/hdfs-rs - libhdfs 绑定 [<img src="https://api.travis-ci.org/hyunsik/hdfs-rs.svg?branch=master">](https://travis-ci.org/hyunsik/hdfs-rs) (库 / 分布式系统)
- awesome-rust - hyunsik/hdfs-rs - libhdfs bindings (Libraries / Distributed systems)
- awesome-rust - hyunsik/hdfs-rs - ci.org/hyunsik/hdfs-rs.svg?branch=master">](https://travis-ci.org/hyunsik/hdfs-rs) (库 Libraries / 分布式系统 Distributed systems)
- fucking-awesome-rust - hyunsik/hdfs-rs - libhdfs bindings (Libraries / Distributed systems)
- fucking-awesome-rust - hyunsik/hdfs-rs - libhdfs bindings (Libraries / Distributed systems)
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
* [API documentation] (http://hyunsik.github.io/hdfs-rs/)## Requirements
* Hadoop compiled with native library (i.e., maven profile ``-Pnative``)
* Please refer to https://github.com/apache/hadoop/blob/trunk/BUILDING.txt if you need more description.## Usage
Add this to your Cargo.toml:```toml
[dependencies]
hdfs = "0.0.4"
```and this to your crate root:
```rust
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:
````sh
export HADOOP_HOME=
```Then, you can execute your program as follows:
```bash
./exec your_program arg1 arg2
```