THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
# The Apache HAWQ source code can be obtained from the the following link:
# Apache Repo: https://git-wip-us.apache.org/repos/asf/incubator-hawq.git or
# GitHub Mirror: https://github.com/apache/incubator-hawq.
git clone https://git-wip-us.apache.org/repos/asf/incubator-hawq.git
# The code directory is incubator-hawq.
CODE_BASE=`pwd`/incubator-hawq
# Install Libyarn and Libhdfs3
cd $CODE_BASE/depends/libyarn
mkdir build
cd build
../bootstrap --prefix=/usr/local/
make -j8
make install
cd $CODE_BASE/depends/libhdfs3
mkdir build
cd build
../bootstrap --prefix=/usr/local/
make -j8
make install
cd $CODE_BASE
# Run command to generate makefile.
./configure
# Or you could use --prefix=/hawq/install/path to change the Apache HAWQ install path,
# and you can also add some optional components using options (--with-python --with-perl)
./configure --prefix=/hawq/install/path --with-python --with-perl
# You can also run the command with --help for more configuration.
./configure --help
#Note: If ./configure complains that libyarn is missing, it is provided under ./depends/libyarn.
# Please follow the above steps to install libyarn. You may need to run ldconfig after libyarn is installed.
# Run command to build and install
# To build concurrently , run make with -j option. For example, make -j8
# On Linux system without large memory, you will probably encounter error like
# "Error occurred during initialization of VM" "Could not reserve enough space for object heap";
# Try to set vm.overcommit_memory = 1 temporarily, and/or avoid "-j" build, and/or add more memory and then rebuild.
# On mac os, you will probably see this error: "'openssl/ssl.h' file not found".
# "brew link openssl --force" should be able to solve the issue.
make -j8
# Install HAWQ
make install |
...