11 Commits

Author SHA1 Message Date
Joe McDonnell
5eea4f6f79 IMPALA-14559: Ship calcite-planner jar in Impala packages
This adds the java/impala-package Maven project to make it easier
to ship / test the Calcite planner. impala-package has a dependency
on impala-frontend and calcite-planner, so its classpath requires
no extra work when constructing the classpath.

An additional cleanup is that this no longer puts the
impala-frontend-*-tests.jar on the classpath by default. This requires
updating the query event hooks test, as it relies on that jar being
present.

This does not change the default value for the use_calcite_planner
query option, so there is no change in behavior.

Testing:
 - Ran a core job
 - Built docker images and OS packages locally

Change-Id: I81dec2a5b59e279229a735c8bb1a23c77111a793
Reviewed-on: http://gerrit.cloudera.org:8080/23497
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2025-11-21 03:36:12 +00:00
Peter Rozsa
856741b1e8 IMPALA-13742: Force python3 for CPack
This patch adds a global override for CPack to use python3.

Change-Id: Id9a0400d6c4cfb1b13ccf33c8ed4d5bf2a9c513b
Reviewed-on: http://gerrit.cloudera.org:8080/22464
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2025-02-08 14:11:29 +00:00
Xiang Yang
4ba6f9b5a5 IMPALA-13064: Install service for linux packaging
This patch provides LSB-compliant init scripts for impala package,
administrator can manage impala services by the following commands:
'service <impala_service> <start|stop|restart|status|force-reload'

This patch also change the owner of package files to 'impala', and
launch process by the same user.

Testing:
 - Manually deploy package on Ubuntu22.04 and verify it.

Change-Id: If202e91e4b05adbc96cd5c556654901d2f7ca9fe
Reviewed-on: http://gerrit.cloudera.org:8080/21994
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2024-12-17 06:48:46 +00:00
Xiang Yang
8af0ce8ed6 IMPALA-13001: Support graceful and force shutdown for impala.sh
This patch add graceful and force shutdown support for impala.sh.

This patch also keep the stdout and stderr log when startup.

This patch also fix some bugs in the impala.sh, including:
 - empty service name check.
 - restart command cannot work.

Testing:
 - Manually deploy package on Ubuntu22.04 and verify it.

Change-Id: Ib7743234952ba6b12694ecc68a920d59fea0d4ba
Reviewed-on: http://gerrit.cloudera.org:8080/21297
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2024-07-15 12:03:18 +00:00
Xiang Yang
aea057f095 IMPALA-13028: Strip dynamic link libraries in Linux DEB/RPM packages
This optimization can reduce the DEB package size from 611MB to 554MB,
and reduce the kudu client library size from 188MB to 10.5MB at the
same time.

Testing:
 - Manually make a DEB package and check the dynamic link libraries
   whether be stripped.

Change-Id: Ie7bee0b4ef904db3706a350f17bcd68d769aa5ad
Reviewed-on: http://gerrit.cloudera.org:8080/21542
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2024-06-27 09:05:40 +00:00
stiga-huang
61ceb16d88 IMPALA-12999: Add log4j.properties to the DEB/RPM packages
log4j.properties is required to configure log4j before logs from it are
redirected to glog (done in GlogAppender#Install()). This is crucial to
show error logs during initialization, especially while lauching the
JVM. See the JIRA description for an example.

This copies log4j.properties from fe/src/test/resources directly since
it hasn't changed for years.

Change-Id: Iee0b9699ef313aa8e94bd351fa51fad3ea0cdf57
Reviewed-on: http://gerrit.cloudera.org:8080/21293
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2024-04-14 10:10:47 +00:00
Xiang Yang
050805d21b IMPALA-12362: (part-4/4) Refactor linux packaging related cmake files.
Independent linux packaging related content to package/CMakeLists.txt
to make it more clearly.

This patch also add LICENSE and NOTICE file in the final package.

Testing:
 - Manually deploy package on Ubuntu22.04 and verify it.

Change-Id: If3914dcda69f81a735cdf70d76c59fa09454777b
Reviewed-on: http://gerrit.cloudera.org:8080/20263
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2024-04-12 14:48:00 +00:00
Xiang Yang
07218588a6 IMPALA-12362: (part-3/4) Add more binaries to packaging module.
Add admissiond service and impala-profile-tool to packaging module.

Testing:
 - Manually deploy packages on Ubuntu22.04 and verify it.

Change-Id: I594742037a05d4d74d6a2bc011619713f7ca12e4
Reviewed-on: http://gerrit.cloudera.org:8080/20929
Reviewed-by: Quanlong Huang <huangquanlong@gmail.com>
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2024-04-08 10:23:18 +00:00
Xiang Yang
e74bb9d81b IMPALA-12362: (part-2/4) Optimize default configurations for packaging module.
To avoid absolutely paths and keep it simple, optimize the default
configurations for packaging module by remove or change some entries.

At the same time, add license header to 'package/conf/*-site.xml' and
rename them to '*-site.xml.template' to force administrator making
configurations appropriate for their cluster.

Testing:
 - Manually deploy packages on Ubuntu22.04 and verify it.

Change-Id: Ifda229b779a3d6fca647bb81fe23dd61ad7e5d66
Reviewed-on: http://gerrit.cloudera.org:8080/20928
Reviewed-by: Quanlong Huang <huangquanlong@gmail.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2024-04-08 04:29:26 +00:00
Xiang Yang
b64dc110c1 IMPALA-12362: (part-1/4) Refactor service management scripts.
Uniform all service management scripts to 'bin/impala.sh', administrator
can customize environment variables based on their cluster at
'conf/impala-env.sh', as well as set flags at 'conf/impalad_flags...'.

Usually administrator can override the environment variables in
'conf/impala-env.sh' with commandline arguments.  The same is true for
flags in 'conf/impalad_flags...'. This flexibility can be used in
scenarios such as supporting multi-instance deployments.

The directory structure has been adjusted as follows:
 - put java libs to 'lib/jars' directory.
 - put native libs to 'lib/native' directory.
 - put impalad binary to 'sbin' directory.

Testing:
 - Manually deploy packages on Ubuntu22.04 and verify it.

Change-Id: I8f4dcad9cfa12d351d562e7ef8c0a8957d3ca147
Reviewed-on: http://gerrit.cloudera.org:8080/20921
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2024-04-06 11:22:26 +00:00
stiga-huang
8d0ab2b684 IMPALA-10262: RPM/DEB Packaging Support
This patch bases on a previous patch contributed by Shant Hovsepian:
https://gerrit.cloudera.org/c/16612/

It adds a new option, -package, to buildall.sh for building a package
for the current OS type (e.g. CentOS/Ubuntu). You can also use
"make/ninja package" to build the package. Scripts for launching the
services and the required configuration files are also added.

Tests:
 - Built on Ubuntu 18.04/20.04 and CentOS 7 using
   ./buildall.sh -noclean -skiptests -release -package
 - Deployed the RPM package on a CDP cluster. Verifed the scripts.
 - Deployed the DEB package on a docker container. Verified the scripts.

Change-Id: I64419fd400fe8d233dac016b6306157fe9461d82
Reviewed-on: http://gerrit.cloudera.org:8080/18939
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2023-07-16 11:13:23 +00:00