Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install prerequisites

    Code Block
    languagebash
    themeEmacs
    git clone https://github.com/awleblang/impala-setup
    cd impala-setup
    sudo ./install.sh
  2. Clone the Impala git repo and change to the new Impala directory.

    Code Block
    languagebash
    themeEmacs
    git clone https://git-wip-us.apache.org/repos/asf/incubator-impala.git Impala
    cd Impala
  3. Set the following environment variables in your `.bashrc` or elsewhere:

    Code Block
    languagebash
    themeEmacs
    export JAVA_HOME=/usr/lib/jvm/java-7-oracle
    export IMPALA_HOME=<path to Impala>
    export BOOST_LIBRARYDIR=/usr/lib/x86_64-linux-gnu
    export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
    export LC_ALL="en_US.UTF-8"
    export M2_HOME=/usr/local/apache-maven-3.0.5
    export M2=$M2_HOME/bin 
    export PATH=$M2:$PATH
    
  4. Build Impala

    Code Block
    languagebash
    themeEmacs
    source ${IMPALA_HOME}/bin/impala-config.sh
    # Build Impala and prepare the local pseudo-cluster (the first time only)
    ${IMPALA_HOME}/buildall.sh -noclean -skiptests -build_shared_libs -format
  5. Start supporting services

    Code Block
    title
    languagebash
    themeEmacsStart supporting services
    # This script starts a full set of local services 
    # including HDFS, HBase, 
    # Hive and ZooKeeper, amongst 
    # other things. If you have trouble starting 
    # this script, 
    # check the log files in${IMPALA_HOME}/cluster_logs/ for clues.
    ${IMPALA_HOME}/testdata/bin/run-all.sh
  6. Start the Impala cluster
  7. Check that everything works correctly
  8. Have fun...
  9. Recompile 

...