This project is deprecated, use https://github.com/shunfei/indexr-compress-lib instead!
This project is based on infobright-4.0.7 community edition.
We export the compression algorithm to Java via JNI.
Note: You should compile c++ lib on the same platform as your cluster will run.
- Download boost from www.boost.org, we use
boost_1_59_0.tar.gz
, higher version should work as well. - Compile boost
Switch to the appropriate user,
$> tar -xzf boost_1_59_0.tar.gz
$> cd boost_1_59_0
$> ./bootstrap.sh --prefix=/usr/local
$> ./b2 install
$> ls /usr/local/lib/
Check boost libs at /usr/local/lib/
, we need to deploy all libs in it.
Install via brew
$> sudo brew install boost
$> ls /usr/local/lib/*
Check boost libs at /usr/local/lib/
, we need to deploy all libs in it.
Download sources and build the lib.
$> git clone [email protected]:shunfei/infobright-4.0.7.git
$> cd infobright-4.0.7
$> ./compile_java_lib.sh
$> ls java_lib/
Now the java_lib
folder should contains compress lib file.
On mac:
libbhcompress.dylib
On linux:
libbhcompress.so