Skip to content
zhejiangxiaomai edited this page Oct 17, 2017 · 55 revisions

Installation steps

  1. Requirement

    (1) Compiler Requirement

     GCC >= 4.8 and GCC<=4.9
     clang >= 3.2
     CMAKE >= 2.8.11
     support c++11
    

    (2) Operating System Requirement

     CentOS >= 6.5 (recommend centos 7, development mode):
    
  2. Install third party library packages

    (1) Download third party library packages and put it in your home folder;

    Completed version for centos

    And we recommend you download completed version.(umcompleted version need to download some lib from source, we download all thirdparty libs for you)

    (2) uncompression the thirdparty.tar.gz and read the README of the folder

    tar -xzvf thirdparty_CENTOS7.tar.gz 
(3) run the shell  
    Attention: Install process will ask you to write claims_home. (claims_home means the absolute path of CLAIMS folder)
   cd thirdparty
 
   ./autotools

   ./install.sh

   enter 1
  1. Initialize git and git clone CLAIMS( checkout to latest version)
    git init

    git clone [email protected]:dase/CLAIMS.git

    git checkout for_auto_test 

Maybe you need to add claims_home in ~/.bashrc file. if you forget enter claims_home in (3) step.
[click here to see recommanded config and bashrc](https://github.com/dase/CLAIMS/wiki/Configure)
   vi ~/.bashrc

   add "export CLAIMS_HOME=/usr/claims/Desktop/git/CLAIMS"
      
   source ~/.bashrc
  1. Compilation and Installation
   cd $CLAIMS_HOME
   
   ./build.sh init
   
   mkdir install
    
   cd install
   
   ../configure

   make -j4    
  1. Configure

    Default configure file at /CLAIMS/conf/config, please set the path for data and catalog! and do not forget change ip。 please see Configure.

    In standalone mode you just need set data directory.

      eg. data="/home/claims/Desktop/data/"  
    

    Do not forget the slash at the end of it.

      data="/home/claims/Desktop/data" is wrong example
    
  2. Run and Test

   cd /.../CLAIMS/install
   
   ./claimsserver -c ../conf/config
   
   ./client 127.0.0.1 10000

if you want to run test, please run (Under the premise of loaded data successfully)

   cd $CLAIMS_HOME/sbin/claims-test
   
   ./run-gtest.sh
Note: ./claimsserver -h can give you help, ./client ip port


./test --ip 127.0.0.1 --port 10000 for test if you have tpc-h sf=1 data 
and load it with partition=1. please see [[DDL of SQL]].
  1. Uninstallation and Clean
   make distclean (at /.../CLAIMS/install/)

   ./build.sh clean (at /.../CLAIMS/)
  1. FAQ:

    (1) Error: JAVA_HOME is not set.

     1).change /Hadoop/conf/hadoop-env.sh
    
     2).add export JAVA_HOME="/home/.../thirdparty/jdk1.7.0_71"(the path in your machine)
    
Clone this wiki locally