commit | 66322f27e36f3c322bfa78726e9742ff110e96fd | [log] [tgz] |
---|---|---|
author | Tim Armstrong <tarmstrong@cloudera.com> | Thu Nov 14 15:09:23 2019 -0800 |
committer | Impala Public Jenkins <impala-public-jenkins@cloudera.com> | Tue Nov 19 23:41:38 2019 +0000 |
tree | 47255eaa8c1d3b8dcd65dd5be41357b6cab703f4 | |
parent | 6f9a842a5113d76778b40241136dc28e4f27a6c1 [diff] |
IMPALA-9134: pipeline data stream sender flush This changes the logic so that the last TransmitData and EndDataStream RPCs can be sent to receivers in parallel, instead of them being serialized in FlushAndSendEos(). This was a problem because each call to FlushAndSendEos() would wait for one or two network round-trips, so previously the flush could easily take sum(2 * RTT). After this change the sending and waiting for RPCs is pipeline so the time taken should be closer to 2 * RTT. Testing: This code is exercised by existing tests. Ran exhaustive tests. Perf: No measurable change on local TPC-H (where network latency isn't a significant factor). +----------+-----------------------+---------+------------+------------+----------------+ | Workload | File Format | Avg (s) | Delta(Avg) | GeoMean(s) | Delta(GeoMean) | +----------+-----------------------+---------+------------+------------+----------------+ | TPCH(30) | parquet / none / none | 7.64 | -1.37% | 5.00 | +0.29% | +----------+-----------------------+---------+------------+------------+----------------+ +----------+----------+-----------------------+--------+-------------+------------+------------+----------------+-------+----------------+---------+-------+ | Workload | Query | File Format | Avg(s) | Base Avg(s) | Delta(Avg) | StdDev(%) | Base StdDev(%) | Iters | Median Diff(%) | MW Zval | Tval | +----------+----------+-----------------------+--------+-------------+------------+------------+----------------+-------+----------------+---------+-------+ | TPCH(30) | TPCH-Q14 | parquet / none / none | 3.75 | 3.39 | +10.48% | * 19.43% * | 8.88% | 7 | +7.26% | 0.48 | 1.19 | | TPCH(30) | TPCH-Q13 | parquet / none / none | 13.55 | 12.78 | +6.05% | 5.43% | 4.75% | 7 | +5.09% | 1.76 | 2.14 | | TPCH(30) | TPCH-Q2 | parquet / none / none | 1.30 | 1.26 | +3.63% | 5.53% | 3.27% | 7 | +3.93% | 1.28 | 1.46 | | TPCH(30) | TPCH-Q12 | parquet / none / none | 2.65 | 2.56 | +3.44% | 4.23% | 2.92% | 7 | +3.68% | 1.28 | 1.73 | | TPCH(30) | TPCH-Q15 | parquet / none / none | 3.80 | 3.76 | +0.91% | 0.81% | 1.80% | 7 | +1.42% | 1.12 | 1.22 | | TPCH(30) | TPCH-Q8 | parquet / none / none | 5.23 | 5.13 | +2.11% | 5.41% | 0.48% | 7 | +0.04% | 0.16 | 1.01 | | TPCH(30) | TPCH-Q10 | parquet / none / none | 5.77 | 5.62 | +2.70% | 9.84% | 2.79% | 7 | -0.80% | -0.96 | 0.68 | | TPCH(30) | TPCH-Q21 | parquet / none / none | 28.82 | 28.62 | +0.70% | 0.59% | 0.37% | 7 | +0.68% | 1.92 | 2.67 | | TPCH(30) | TPCH-Q6 | parquet / none / none | 1.32 | 1.31 | +0.82% | 0.36% | 1.53% | 7 | +0.23% | 1.28 | 1.38 | | TPCH(30) | TPCH-Q11 | parquet / none / none | 1.30 | 1.29 | +0.60% | 5.11% | 2.94% | 7 | +0.14% | 0.16 | 0.27 | | TPCH(30) | TPCH-Q19 | parquet / none / none | 4.52 | 4.49 | +0.57% | 2.98% | 1.58% | 7 | +0.12% | 0.32 | 0.44 | | TPCH(30) | TPCH-Q16 | parquet / none / none | 2.78 | 2.77 | +0.35% | 3.21% | 2.02% | 7 | +0.17% | 0.64 | 0.25 | | TPCH(30) | TPCH-Q3 | parquet / none / none | 5.65 | 5.65 | -0.04% | 1.62% | 1.91% | 7 | -0.06% | -0.32 | -0.04 | | TPCH(30) | TPCH-Q1 | parquet / none / none | 10.88 | 10.89 | -0.11% | 0.76% | 0.90% | 7 | +0.01% | 0.00 | -0.26 | | TPCH(30) | TPCH-Q4 | parquet / none / none | 2.18 | 2.18 | -0.38% | 1.33% | 2.48% | 7 | -0.04% | -0.16 | -0.36 | | TPCH(30) | TPCH-Q5 | parquet / none / none | 3.94 | 3.95 | -0.27% | 2.37% | 1.33% | 7 | -0.26% | -1.12 | -0.26 | | TPCH(30) | TPCH-Q7 | parquet / none / none | 22.37 | 22.41 | -0.19% | 2.94% | 1.92% | 7 | -0.66% | -0.80 | -0.15 | | TPCH(30) | TPCH-Q22 | parquet / none / none | 3.68 | 3.72 | -1.14% | 4.95% | 3.99% | 7 | +0.13% | 0.00 | -0.48 | | TPCH(30) | TPCH-Q20 | parquet / none / none | 2.83 | 2.86 | -1.21% | 2.69% | 2.20% | 7 | -1.60% | -0.64 | -0.93 | | TPCH(30) | TPCH-Q17 | parquet / none / none | 4.92 | 5.04 | -2.46% | 3.11% | 2.63% | 7 | -2.00% | -1.44 | -1.62 | | TPCH(30) | TPCH-Q9 | parquet / none / none | 16.32 | 17.19 | -5.03% | 2.76% | 4.56% | 7 | -4.00% | -2.24 | -2.53 | | TPCH(30) | TPCH-Q18 | parquet / none / none | 20.45 | 23.45 | -12.82% | 5.49% | * 23.11% * | 7 | -4.89% | -0.96 | -1.44 | +----------+----------+-----------------------+--------+-------------+------------+------------+----------------+-------+----------------+---------+-------+ Change-Id: If66add99e4370f8faf22761b336205cc9f9f1867 Reviewed-on: http://gerrit.cloudera.org:8080/14717 Reviewed-by: Tim Armstrong <tarmstrong@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Lightning-fast, distributed SQL queries for petabytes of data stored in Apache Hadoop clusters.
Impala is a modern, massively-distributed, massively-parallel, C++ query engine that lets you analyze, transform and combine data from a variety of data sources:
To learn more about Impala as a business user, or to try Impala live or in a VM, please visit the Impala homepage.
If you are interested in contributing to Impala as a developer, or learning more about Impala's internals and architecture, visit the Impala wiki.
Impala only supports Linux at the moment.
This distribution uses cryptographic software and may be subject to export controls. Please refer to EXPORT_CONTROL.md for more information.
See bin/bootstrap_build.sh.
Impala can be built with pre-built components or components downloaded from S3. The components needed to build Impala are Apache Hadoop, Hive, HBase, and Sentry. 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.
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. |
Environment variable | Default value | Description |
---|---|---|
IMPALA_HOME | Top level Impala directory | |
IMPALA_TOOLCHAIN | “${IMPALA_HOME}/toolchain” | Native toolchain directory (for compilers, libraries, etc.) |
SKIP_TOOLCHAIN_BOOTSTRAP | “false” | Skips downloading the toolchain any python dependencies if “true” |
CDH_BUILD_NUMBER | Identifier to indicate the CDH build number | |
CDH_COMPONENTS_HOME | “${IMPALA_HOME}/toolchain/cdh_components-${CDH_BUILD_NUMBER}” | Location of the CDH components within the toolchain. |
CDH_MAJOR_VERSION | “5” | 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” “${IMPALA_HOME}/shell/ext-py/prettytable-0.7.1/dist/prettytable-0.7.1” "${IMPALA_HOME}/shell/ext-py/sasl-0.1.1/dist/sasl-0.1.1-py2.7-linux-x "${IMPALA_HOME}/shell/ext-py/sqlparse-0.1.19/dist/sqlparse-0.1.19-py2 |
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) |
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. |
Environment variable | Default value | Description |
---|---|---|
HADOOP_HOME | “${CDH_COMPONENTS_HOME}/hadoop-${IMPALA_HADOOP_VERSION}/” | Used to locate Hadoop |
HADOOP_INCLUDE_DIR | “${HADOOP_HOME}/include” | For ‘hdfs.h’ |
HADOOP_LIB_DIR | “${HADOOP_HOME}/lib” | For ‘libhdfs.a’ or ‘libhdfs.so’ |
HIVE_HOME | “${CDH_COMPONENTS_HOME}/{hive-${IMPALA_HIVE_VERSION}/” | |
HBASE_HOME | “${CDH_COMPONENTS_HOME}/hbase-${IMPALA_HBASE_VERSION}/” | |
SENTRY_HOME | “${CDH_COMPONENTS_HOME}/sentry-${IMPALA_SENTRY_VERSION}/” | Used to setup test data |
THRIFT_HOME | “${IMPALA_TOOLCHAIN}/thrift-${IMPALA_THRIFT_VERSION}” |