You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by iw...@apache.org on 2022/09/14 05:36:20 UTC
[bigtop] branch master updated: BIGTOP-3810: Fix wrong home configuration for HTTPFS on build scripts (#1007)
This is an automated email from the ASF dual-hosted git repository.
iwasakims pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/master by this push:
new 37f1d025 BIGTOP-3810: Fix wrong home configuration for HTTPFS on build scripts (#1007)
37f1d025 is described below
commit 37f1d025d34034eec7c8da452ec2546b6cfd8e9a
Author: Zhiguo Wu <wu...@apache.org>
AuthorDate: Wed Sep 14 13:36:15 2022 +0800
BIGTOP-3810: Fix wrong home configuration for HTTPFS on build scripts (#1007)
---
bigtop-packages/src/deb/hadoop/hadoop-httpfs.preinst | 2 +-
bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bigtop-packages/src/deb/hadoop/hadoop-httpfs.preinst b/bigtop-packages/src/deb/hadoop/hadoop-httpfs.preinst
index 98d6a8ba..55cac1c3 100644
--- a/bigtop-packages/src/deb/hadoop/hadoop-httpfs.preinst
+++ b/bigtop-packages/src/deb/hadoop/hadoop-httpfs.preinst
@@ -37,7 +37,7 @@ case "$1" in
adduser \
--system \
--ingroup httpfs \
- --home /var/run/hadoop-httpfs \
+ --home /var/lib/hadoop-httpfs \
--gecos "Hadoop HTTPFS" \
--shell /bin/bash \
httpfs >/dev/null 2>/dev/null || :
diff --git a/bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec b/bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec
index 0d2f2d39..ca6ec560 100644
--- a/bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec
+++ b/bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec
@@ -620,7 +620,7 @@ getent passwd hdfs >/dev/null || /usr/sbin/useradd --comment "Hadoop HDFS" --she
%pre httpfs
getent group httpfs >/dev/null || groupadd -r httpfs
-getent passwd httpfs >/dev/null || /usr/sbin/useradd --comment "Hadoop HTTPFS" --shell /bin/bash -M -r -g httpfs -G httpfs --home %{run_httpfs} httpfs
+getent passwd httpfs >/dev/null || /usr/sbin/useradd --comment "Hadoop HTTPFS" --shell /bin/bash -M -r -g httpfs -G httpfs --home %{state_httpfs} httpfs
%pre kms
getent group kms >/dev/null || groupadd -r kms