You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Xiang Yang (Code Review)" <ge...@cloudera.org> on 2025/04/05 08:38:15 UTC
[Impala-ASF-CR] IMPALA-13879: Support Systemd in linux packaging
Xiang Yang has uploaded this change for review. ( http://gerrit.cloudera.org:8080/22742
Change subject: IMPALA-13879: Support Systemd in linux packaging
......................................................................
IMPALA-13879: Support Systemd in linux packaging
Since some linux distributions are not LSB compliant anymore, we
should support systemd in linux packaging.
Testing:
- manually test on rockylinux 8
Change-Id: I73b3b3816ec7f1406c25f602ab5cb7c8e4ed571e
---
M package/CMakeLists.txt
M package/bin/impala.sh
A package/etc/systemd/system/admissiond.service
A package/etc/systemd/system/catalogd.service
A package/etc/systemd/system/impalad.service
A package/etc/systemd/system/statestored.service
6 files changed, 166 insertions(+), 3 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/42/22742/1
--
To view, visit http://gerrit.cloudera.org:8080/22742
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I73b3b3816ec7f1406c25f602ab5cb7c8e4ed571e
Gerrit-Change-Number: 22742
Gerrit-PatchSet: 1
Gerrit-Owner: Xiang Yang <yx...@126.com>
[Impala-ASF-CR] IMPALA-13879: Support Systemd in linux packaging
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/22742 )
Change subject: IMPALA-13879: Support Systemd in linux packaging
......................................................................
Patch Set 1:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/18842/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/22742
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I73b3b3816ec7f1406c25f602ab5cb7c8e4ed571e
Gerrit-Change-Number: 22742
Gerrit-PatchSet: 1
Gerrit-Owner: Xiang Yang <yx...@126.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Sat, 05 Apr 2025 09:06:07 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-13879: Support Systemd in linux packaging
Posted by "Quanlong Huang (Code Review)" <ge...@cloudera.org>.
Quanlong Huang has posted comments on this change. ( http://gerrit.cloudera.org:8080/22742 )
Change subject: IMPALA-13879: Support Systemd in linux packaging
......................................................................
Patch Set 1:
(4 comments)
http://gerrit.cloudera.org:8080/#/c/22742/1/package/etc/systemd/system/catalogd.service
File package/etc/systemd/system/catalogd.service:
http://gerrit.cloudera.org:8080/#/c/22742/1/package/etc/systemd/system/catalogd.service@32
PS1, Line 32: :
nit: remove the leading colon ":" in the variables.
http://gerrit.cloudera.org:8080/#/c/22742/1/package/etc/systemd/system/catalogd.service@33
PS1, Line 33: # Please replace '/usr/lib/jvm/java' with a valid jdk location
Maybe we should use EnvironmentFile=/opt/impala/conf/impala-env.sh and let user edit that conf file instead.
http://gerrit.cloudera.org:8080/#/c/22742/1/package/etc/systemd/system/catalogd.service@34
PS1, Line 34: amd64
Paths with "amd64" can't be used on ARM architectures. Can we find the paths in JAVA_HOME?
http://gerrit.cloudera.org:8080/#/c/22742/1/package/etc/systemd/system/impalad.service
File package/etc/systemd/system/impalad.service:
http://gerrit.cloudera.org:8080/#/c/22742/1/package/etc/systemd/system/impalad.service@35
PS1, Line 35: Environment=HADOOP_LIB_DIR=/opt/impala/lib/native
Can we support custom HADOOP_HOME like we do in impala.sh?
https://github.com/apache/impala/blob/411309acf4d3f326f05dfa04749a0ec0e2ccc801/package/bin/impala.sh#L148
--
To view, visit http://gerrit.cloudera.org:8080/22742
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I73b3b3816ec7f1406c25f602ab5cb7c8e4ed571e
Gerrit-Change-Number: 22742
Gerrit-PatchSet: 1
Gerrit-Owner: Xiang Yang <yx...@126.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Xiang Yang <yx...@126.com>
Gerrit-Reviewer: Zihao Ye <ey...@163.com>
Gerrit-Comment-Date: Fri, 02 Jan 2026 09:11:49 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-13879: Support Systemd in linux packaging
Posted by "Quanlong Huang (Code Review)" <ge...@cloudera.org>.
Quanlong Huang has posted comments on this change. ( http://gerrit.cloudera.org:8080/22742 )
Change subject: IMPALA-13879: Support Systemd in linux packaging
......................................................................
Patch Set 1:
(1 comment)
> Patch Set 1:
>
> > Patch Set 1:
> >
> > (4 comments)
>
> Hi quanlong, there are serval 'type=' of systemd service:https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#Type=, and 'Type=exec' is the most recommanded one.
>
> If we choose use 'Type=exec', we should set environment variables in a more directly way, so I assume impala admin will manually modify the JAVA_HOME and others to a suitable value.
>
> But if we want a more smart way to set the environment variables, we maybe should change the type to 'Type=forking' like doris (https://github.com/apache/doris/blob/3.0.4-rc02/tools/systemd/doris-fe.service) or clickhouse (https://github.com/ClickHouse/ClickHouse/blob/v25.8.13.73-lts/packages/clickhouse-server.service), and change 'ExecStart' to the impala.sh script, thus we can reuse the same logic with other bootstrap method, but the 'Type=forking' is discouraged.
>
> What do you think whether we should choose 'Type=exec' or 'Type=forking'?
I think using 'Type=exec' is good. We can modify impala.sh to support not running the process in background. Then use that script in ExecStart= directly.
The key point is that admins don't need to modify all the service unit files. All config files are consolidated together under /opt/impala/conf.
http://gerrit.cloudera.org:8080/#/c/22742/1/package/etc/systemd/system/catalogd.service
File package/etc/systemd/system/catalogd.service:
http://gerrit.cloudera.org:8080/#/c/22742/1/package/etc/systemd/system/catalogd.service@33
PS1, Line 33: # Please replace '/usr/lib/jvm/java' with a valid jdk location
> Maybe we should use EnvironmentFile=/opt/impala/conf/impala-env.sh and let
Please ignore this. EnvironmentFile only supports simple KEY=VALUE in the file so can't use impala-env.sh here.
--
To view, visit http://gerrit.cloudera.org:8080/22742
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I73b3b3816ec7f1406c25f602ab5cb7c8e4ed571e
Gerrit-Change-Number: 22742
Gerrit-PatchSet: 1
Gerrit-Owner: Xiang Yang <yx...@126.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Xiang Yang <yx...@126.com>
Gerrit-Reviewer: Zihao Ye <ey...@163.com>
Gerrit-Comment-Date: Mon, 05 Jan 2026 08:29:37 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-13879: Support Systemd in linux packaging
Posted by "Xiang Yang (Code Review)" <ge...@cloudera.org>.
Xiang Yang has posted comments on this change. ( http://gerrit.cloudera.org:8080/22742 )
Change subject: IMPALA-13879: Support Systemd in linux packaging
......................................................................
Patch Set 1:
> Patch Set 1:
>
> (4 comments)
Hi quanlong, there are serval 'type=' of systemd service:https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#Type=, and 'Type=exec' is the most recommanded one.
If we choose use 'Type=exec', we should set environment variables in a more directly way, so I assume impala admin will manually modify the JAVA_HOME and others to a suitable value.
But if we want a more smart way to set the environment variables, we maybe should change the type to 'Type=forking' like doris (https://github.com/apache/doris/blob/3.0.4-rc02/tools/systemd/doris-fe.service) or clickhouse (https://github.com/ClickHouse/ClickHouse/blob/v25.8.13.73-lts/packages/clickhouse-server.service), and change 'ExecStart' to the impala.sh script, thus we can reuse the same logic with other bootstrap method, but the 'Type=forking' is discouraged.
What do you think whether we should choose 'Type=exec' or 'Type=forking'?
--
To view, visit http://gerrit.cloudera.org:8080/22742
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I73b3b3816ec7f1406c25f602ab5cb7c8e4ed571e
Gerrit-Change-Number: 22742
Gerrit-PatchSet: 1
Gerrit-Owner: Xiang Yang <yx...@126.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Xiang Yang <yx...@126.com>
Gerrit-Reviewer: Zihao Ye <ey...@163.com>
Gerrit-Comment-Date: Sat, 03 Jan 2026 10:20:01 +0000
Gerrit-HasComments: No