- Notifications
You must be signed in to change notification settings - Fork9
libhdfs binding and wrapper APIs for Rust
License
NotificationsYou must be signed in to change notification settings
hyunsik/hdfs-rs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
libhdfs binding library and rust APIs which safely wraps libhdfs binding APIs
- 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.
- [API documentation] (http://hyunsik.github.io/hdfs-rs/)
- Hadoop compiled with native library (i.e., maven profile
-Pnative
)- Please refer tohttps://github.com/apache/hadoop/blob/trunk/BUILDING.txt if you need more description.
Add this to your Cargo.toml:
[dependencies]hdfs ="0.0.4"
and this to your crate root:
externcrate hdfs;
hdfs-rs uses libhdfs, which is JNI native implementation. JNI native implementation requires the properCLASSPATH
.exec.sh
included in the source code root plays a role to execute your program with the properCLASSPATH
.exec.sh
requiresHADOOP_HOME
. So, you firstly setHADOOP_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
libhdfs binding and wrapper APIs for Rust
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.