Skip to content

shunfei/infobright-4.0.7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Install boost on Linux

  • 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 boost on Mac

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.

Compile cpp lib

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