Skip to content

Installation steps

daseECNU edited this page Apr 14, 2020 · 8 revisions

Installation steps

  1. Requirement

    (1) Compiler Requirement(connect to internet is required)

     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) or Fedora 23:
    
  2. Install third party library packages

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

    The thirdparty library packages include following:

    • hadoop 2.7.1
    • boost 1.53.0
    • libxs 1.2.0
    • libconfig 1.4.9
    • gtest 1.7.0
    • gflags 2.0
    • glog 0.3.3
    • libunwind 1.1
    • gperftools 2.4
    • caf 0.14
    • libsnappy.1.3.1
    • activemq 3.9.3
    • apr 1.5.2
    • llvm

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

    tar -xzvf thirdparty_xx.tar.gz    (xx is suffix)
(3) run the shell  
    Attention: Install process will ask you to write GINKGO_HOME. (GINKGO_HOME means the absolute path of Ginkgo folder)
   cd thirdparty
 
   ./install

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

    git clone https://github.com/daseECNU/Ginkgo.git
    git checkout master 

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

   add "export GINKGO_HOME=absolute path of Ginkgo folder"
      
   source ~/.bashrc
  1. Compilation and Installation
   cd $GINKGO_HOME
   
   ./build.sh init
   
   mkdir install
    
   cd install
   
   ../configure

   make -j4    
  1. Configure

    Default configure file at $GINKGO_HOME/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="/.../data/"  
    

    Do not forget the slash at the end of it.

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

   cd /.../Ginkgo/install
   
   ./ginkgoserver -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 $GINKGO_HOME/install
   
   ./test --ip 127.0.0.1 --port 10000
Note: ./ginkgo -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 /.../Ginkgo/install/)

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

    (1) Error: JAVA_HOME is not set.

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