A Java erasure codes wrapper library for Jerasure(http://jerasure.org/)
Java
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.arcconfig
.gitignore
LICENSE
README.md
pom.xml

README.md

Java erasure

A Java erasure codes wrapper library for Jerasure(http://jerasure.org/)

Usage

Install gf-complete

git clone git@lab.jerasure.org:jerasure/gf-complete.git
cd gf-complete
./autogen.sh
./configure
make
sudo make install

Install jerasure

git clone git@lab.jerasure.org:jerasure/jerasure.git
cd jerasure
autoreconf --force --install -I m4
./configure
make
sudo make install

Compile and Run Your Application

1. Add following dependency to your application's pom.xml:

<groupId>com.xiaomi.infra</groupId>
<artifactId>java-erasure</artifactId>
<version>1.0-SNAPSHOT</version>

2. Compile your application

mvn clean package

3. Run your application

Add the following system property to your application:
  Mac OS:  -Djna.library.path=${path_to_libJerasure.dylib}
  Linux:   -Djna.library.path=${path_to_libJerasure.so}
  Windows: -Djna.library.path=${path_to_libJerasure.dll}
Then run your application.