Building Impala 0.6 on Ubuntu 12.04

Posted on April 3, 2013 by ivotron

This post complements the compilation notes contained in the Impala's Github page (as of March/2013; version 0.6). They are intended to be applied on Ubuntu 12.04 LTS.


sudo aptitude install \
     build-essential automake libtool flex bison \
     git subversion \
     unzip \
     libboost-test-dev libboost-program-options-dev libboost-filesystem-dev libboost-system-dev \
     libboost-regex-dev libboost-thread-dev \
     protobuf-compiler \
     libsasl2-dev \
     libbz2-dev \
     libevent1-dev \
     pkg-config \

LLVM 3.2

The only difference between this and the build instructions at Github is the --prefix argument to ./configure:

tar xvzf llvm-3.2.src.tar.gz
cd llvm-3.2.src/tools
svn co clang
cd ../projects
svn co compiler-rt
cd ..
./configure --with-pic --prefix=$HOME/.opt/
make -j4 REQUIRES_RTTI=1
make install

Add it to .bashrc:



2.8.7 (the current version in 12.04) is too old and thus it can't find the JNI files correctly. Installing 2.8.9 from this PPA solves the issue.

sudo add-apt-repository ppa:kubuntu-ppa/backports
sudo aptitude update
sudo aptitude install cmake


Java 7 works as fine as 6 (OpenJDK-7 has an issue):

sudo add-apt-repository ppa:webupd8team/java
sudo aptitude update
sudo aptitude install oracle-java7-installer

Then make sure JAVA_HOME is set correctly (in my case this points to /usr/lib/jvm/java-7-oracle/).


Instead of installing in /usr/local, I did in my .opt/:

cd $HOME/.opt/
tar xvfz apache-maven-3.0.4-bin.tar.gz
rm apache-maven-3.0.4-bin.tar.gz

Then add the following to .bashrc:

export M2_HOME=$HOME/.opt/apache-maven-3.0.4
export M2=$M2_HOME/bin
export PATH=$M2:$PATH

Building Impala

This is exactly as in Impala's Github.