You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document introduces the Impala project layout and some key configuration variables.
Beware that it may become stale over time as the project evolves.
Detailed Build Notes
Impala can be built with pre-built components or components downloaded from S3.
The components needed to build Impala are Apache Hadoop, Hive, and HBase.
If you need to manually override the locations or versions of these components, you
can do so through the environment variables and scripts listed below.
Scripts and directories
Location
Purpose
bin/impala-config.sh
This script must be sourced to setup all environment variables properly to allow other scripts to work
bin/impala-config-local.sh
A script can be created in this location to set local overrides for any environment variables
bin/impala-config-branch.sh
A version of the above that can be checked into a branch for convenience.
bin/bootstrap_build.sh
A helper script to bootstrap some of the build requirements.
bin/bootstrap_development.sh
A helper script to bootstrap a developer environment. Please read it before using.
be/build/
Impala build output goes here.
be/generated-sources/
Thrift and other generated source will be found here.
Location of the CDP components within the toolchain.
CDH_MAJOR_VERSION
"7"
Identifier used to uniqueify paths for potentially incompatible component builds.
IMPALA_CONFIG_SOURCED
"1"
Set by ${IMPALA_HOME}/bin/impala-config.sh (internal use)
JAVA_HOME
"/usr/lib/jvm/${JAVA_VERSION}"
Used to locate Java
JAVA_VERSION
"java-7-oracle-amd64"
Can override to set a local Java version.
JAVA
"${JAVA_HOME}/bin/java"
Java binary location.
CLASSPATH
See bin/set-classpath.sh for details.
PYTHONPATH
Will be changed to include: "${IMPALA_HOME}/shell/gen-py" "${IMPALA_HOME}/testdata" "${THRIFT_HOME}/python/lib/python2.7/site-packages" "${HIVE_HOME}/lib/py"
Source Directories for Impala
Environment variable
Default value
Description
IMPALA_BE_DIR
"${IMPALA_HOME}/be"
Backend directory. Build output is also stored here.
IMPALA_FE_DIR
"${IMPALA_HOME}/fe"
Frontend directory
IMPALA_COMMON_DIR
"${IMPALA_HOME}/common"
Common code (thrift, function registry)
Various Compilation Settings
Environment variable
Default value
Description
IMPALA_BUILD_THREADS
"8" or set to number of processors by default.
Used for make -j and distcc -j settings.
IMPALA_MAKE_FLAGS
""
Any extra settings to pass to make. Also used when copying udfs / udas into HDFS.
USE_SYSTEM_GCC
"0"
If set to any other value, directs cmake to not set GCC_ROOT, CMAKE_C_COMPILER, CMAKE_CXX_COMPILER, as well as setting TOOLCHAIN_LINK_FLAGS
IMPALA_CXX_COMPILER
"default"
Used by cmake (cmake_modules/toolchain and clang_toolchain.cmake) to select gcc / clang
USE_GOLD_LINKER
"true"
Directs backend cmake to use gold.
IS_OSX
"false"
(Experimental) currently only used to disable Kudu.
Typically used together to specify a local build of Apache Hive. Care should be taken
while using these variables since they take precedence over the defaults in
impala-config.sh, they may cause confusion when switching between branches or versions of
Apache Impala.
| Environment variable | Description |
| HIVE_VERSION_OVERRIDE | Used to specify different Hive version from default |
| HIVE_STORAGE_API_VERSION_OVERRIDE | Used to specify different Hive Storage API version from default |
| HIVE_METASTORE_THRIFT_DIR_OVERRIDE | Used to specify location of metastore thrift files to use during Thrift compilation |
| HIVE_HOME_OVERRIDE | Used to specify location of Hive |