Skip to content

Conversation

@boqiang
Copy link

@boqiang boqiang commented Dec 10, 2025

Description of PR

Support a new environment variable HADOOP_LOG_DAEMON_MODE to allow dynamically setting HADOOP_ROOT_LOGGER and HADOOP_LOGFILE to same values as if using --daemon option to run hadoop services

hadoop systemd services run the daemon process in the forground without using --daemon option. However, HADOOP_ROOT_LOGGER and HADOOP_LOGFILE values will only be set dynamically when using --daemon flag. For systemd services, we want to have same default settings for HADOOP_ROOT_LOGGER and HADOOP_LOGFILE as the background daemon case.

How was this patch tested?

This feature has been tested on workday real production environment.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 15m 30s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 shelldocs 0m 0s Shelldocs was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1 💚 mvninstall 37m 12s trunk passed
+1 💚 mvnsite 1m 37s trunk passed
+1 💚 shadedclient 25m 19s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 1m 9s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 mvnsite 1m 28s the patch passed
+1 💚 shellcheck 0m 3s No new issues.
+1 💚 shadedclient 25m 5s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 1m 47s hadoop-common in the patch passed.
+1 💚 asflicense 0m 36s The patch does not generate ASF License warnings.
113m 0s
Subsystem Report/Notes
Docker ClientAPI=1.52 ServerAPI=1.52 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8129/1/artifact/out/Dockerfile
GITHUB PR #8129
Optional Tests dupname asflicense mvnsite unit codespell detsecrets shellcheck shelldocs
uname Linux 79428fcbbda8 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 2ac5275
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8129/1/testReport/
Max. process+thread count 635 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8129/1/console
versions git=2.25.1 maven=3.9.11 shellcheck=0.7.0
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants