You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by st...@apache.org on 2020/06/01 21:26:17 UTC
[impala] branch master updated (30f68db -> 00ef258)
This is an automated email from the ASF dual-hosted git repository.
stakiar pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git.
from 30f68db IMPALA-9749: ASAN builds should not run FE tests.
new b82ae24 [DOCS] data cache is not experimental
new 00aef7f Only build ext-py directories tracked by git for make_shell_tarball.sh
new 00ef258 IMPALA-9777: Set hive.optimize.sort.dynamic.partition to true for dynamic inserts
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
docs/topics/impala_data_cache.xml | 4 ----
shell/make_shell_tarball.sh | 22 ++++++++++++++++++++++
testdata/datasets/tpcds/tpcds_schema_template.sql | 2 ++
3 files changed, 24 insertions(+), 4 deletions(-)
[impala] 03/03: IMPALA-9777: Set
hive.optimize.sort.dynamic.partition to true for dynamic inserts
Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
stakiar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git
commit 00ef25888080bb1ec792c01177ab6ebcff447c5d
Author: Sahil Takiar <ta...@gmail.com>
AuthorDate: Thu May 28 13:49:17 2020 -0700
IMPALA-9777: Set hive.optimize.sort.dynamic.partition to true for dynamic inserts
This sets hive.optimize.sort.dynamic.partition to true when loading
tpcds.store_sales. This option takes effect during Hive dynamic partitioning
inserts. It introduces a sort into the insert query so that all data is
sorted on the partition key. This allows the reducers to only open a single
file at a time when writing out files.
When this config is set to false, Hive will write to multiple partitions
at the same time. So a single Hive container will have multiple file
handles open at once. This can lead to OOM issues on the Hive side as well
as diskspace issues with HDFS. When a file is opened on HDFS, the
Namenode reserves an entire block for each file, even if the resulting
file is less than a block size. If there isn't enough disk space for all
file reservations, inserts will start failing because HDFS says there is
not enough capacity on the cluster.
The change is only necessary when loading tpcds.store_sales. Adding it
to other dynamic partitioning inserts does not seem to be necessary. It
is likely that the issue only shows up when reading from an
unpartitioned table and inserting into a partitioned table. In this
case, loading tpcds.store_sales requires reading from
tpcds_unpartitioned.store_sales. The other dynamic partitioning inserts
all read from a partitioned table and write to a partitioned table.
This patch does not introduce a significant performance regression to
the runtime of data-load generation.
Testing:
* Ran core tests
* Ran core tests for Impala-EC
Change-Id: Ic2b7c0ec40a02da2640fae20cf640517fd1f4fef
Reviewed-on: http://gerrit.cloudera.org:8080/15998
Tested-by: Impala Public Jenkins <im...@cloudera.com>
Reviewed-by: Sahil Takiar <st...@cloudera.com>
---
testdata/datasets/tpcds/tpcds_schema_template.sql | 2 ++
1 file changed, 2 insertions(+)
diff --git a/testdata/datasets/tpcds/tpcds_schema_template.sql b/testdata/datasets/tpcds/tpcds_schema_template.sql
index e6686d3..91c6c29 100644
--- a/testdata/datasets/tpcds/tpcds_schema_template.sql
+++ b/testdata/datasets/tpcds/tpcds_schema_template.sql
@@ -772,6 +772,8 @@ set hive.exec.max.dynamic.partitions.pernode=10000;
set hive.exec.max.dynamic.partitions=10000;
set hive.exec.dynamic.partition.mode=nonstrict;
set hive.exec.dynamic.partition=true;
+set hive.optimize.sort.dynamic.partition=true;
+set hive.optimize.sort.dynamic.partition.threshold=1;
insert overwrite table {table_name} partition(ss_sold_date_sk)
select ss_sold_time_sk,
[impala] 02/03: Only build ext-py directories tracked by git for
make_shell_tarball.sh
Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
stakiar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git
commit 00aef7f79e045e3f07019112b86e2de6220c40b2
Author: Joe McDonnell <jo...@cloudera.com>
AuthorDate: Thu May 7 19:43:23 2020 -0700
Only build ext-py directories tracked by git for make_shell_tarball.sh
When versions change in shell/ext-py/*, there can be leftover
directories when developers rebase. These leftover directories
are usually empty and unbuildable, so make_shell_tarball.sh will
fail with an error message like:
Creating an egg for .../Impala/shell/ext-py/bitarray-0.9.0
Traceback (most recent call last):
File "<string>", line 1, in <module>
IOError: [Errno 2] No such file or directory: 'setup.py'
...
This changes the build logic to only build directories that are
tracked in git. When a version of an ext-py package changes, the
directory for the old version may stick around, but it is gone from
the git repository and won't be built. The downside is that when
a developer is adding a new package version, it won't be built until
it is added in git. This logic is disabled if IMPALA_HOME is not a
git repository, which can happen when building from release tarballs.
Testing:
- Added an empty directory in shell/ext-py that was not tracked
in git. Verified it is not built (and would fail before).
- Tested the command detecting IMPALA_HOME as a git repository on
a non-repository directory.
Change-Id: Ibb70ef2d5048d5cfeb260ce62c34f04835c7132d
Reviewed-on: http://gerrit.cloudera.org:8080/15886
Reviewed-by: Joe McDonnell <jo...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
shell/make_shell_tarball.sh | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/shell/make_shell_tarball.sh b/shell/make_shell_tarball.sh
index 7b5f439..cf4ac43 100755
--- a/shell/make_shell_tarball.sh
+++ b/shell/make_shell_tarball.sh
@@ -31,6 +31,18 @@ if [ "x${IMPALA_HOME}" == "x" ]; then
exit 1
fi
+# Detect whether IMPALA_HOME is a git repository. This is used below to allow extra
+# checks when building ext-py.
+pushd ${IMPALA_HOME}
+IS_GIT_CHECKOUT=false
+if git ls-files --error-unmatch > /dev/null 2>&1 ; then
+ IS_GIT_CHECKOUT=true
+ echo "IMPALA_HOME is a git repository"
+else
+ echo "IMPALA_HOME is not a git repository"
+fi;
+popd
+
IMPALA_VERSION_INFO_FILE=${IMPALA_HOME}/bin/version.info
if [ ! -f ${IMPALA_VERSION_INFO_FILE} ]; then
@@ -92,6 +104,16 @@ EOF
# Building all eggs.
echo "Building all external modules into eggs"
for MODULE in ${SHELL_HOME}/ext-py/*; do
+ # Sometimes there are leftover module directories from version changes. If IMPALA_HOME
+ # is a git repository, then we can check if the module directory is tracked by git.
+ # If it is not tracked, skip building it. The downside of this check is that when
+ # adding a new directory, it won't build until added in git. This check does not apply
+ # when IMPALA_HOME is not a git repository (e.g. if building from a release tarball).
+ if ${IS_GIT_CHECKOUT} &&
+ ! git ls-files --error-unmatch ${MODULE} > /dev/null 2>&1 ; then
+ echo "WARNING: ${MODULE} is not tracked by the git repository, skipping..."
+ continue;
+ fi
pushd ${MODULE} > /dev/null 2>&1
echo "Cleaning up old build artifacts."
rm -rf dist 2>&1 > /dev/null
[impala] 01/03: [DOCS] data cache is not experimental
Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
stakiar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git
commit b82ae24458b6b52cb9c095ba31cc35b1c818b384
Author: Tim Armstrong <ta...@cloudera.com>
AuthorDate: Mon Jun 1 11:04:58 2020 -0700
[DOCS] data cache is not experimental
There were no bug fixes to the data cache between Impala 3.3
and 3.4 that I could find, so I just removed the warning -
it should be fine to use in Impala 3.3 and up.
Change-Id: I233c9bd0ad2bbc3dda1da03183d75f59ff31a737
Reviewed-on: http://gerrit.cloudera.org:8080/16016
Reviewed-by: Joe McDonnell <jo...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
docs/topics/impala_data_cache.xml | 4 ----
1 file changed, 4 deletions(-)
diff --git a/docs/topics/impala_data_cache.xml b/docs/topics/impala_data_cache.xml
index 210b181..47e912d 100644
--- a/docs/topics/impala_data_cache.xml
+++ b/docs/topics/impala_data_cache.xml
@@ -30,10 +30,6 @@ under the License.
shuffling exchange traffic of intermediate results.
</p>
- <note>
- This is an experimental feature in Impala 3.3 and is not generally supported.
- </note>
-
<p>
To mitigate the pressure on the network, you can enable the compute nodes to cache the
working set read from remote filesystems, such as, remote HDFS data node, S3, ABFS, ADLS.