HDDS-15912. HttpFS Gateway launcher should use runtime-managed log/temp dirs instead of OZONE_HOME paths.#10811
Open
aryangupta1998 wants to merge 1 commit into
Open
HDDS-15912. HttpFS Gateway launcher should use runtime-managed log/temp dirs instead of OZONE_HOME paths.#10811aryangupta1998 wants to merge 1 commit into
aryangupta1998 wants to merge 1 commit into
Conversation
…ead of OZONE_HOME paths.
dombizita
reviewed
Jul 20, 2026
dombizita
left a comment
Contributor
There was a problem hiding this comment.
Thanks for fixing this @aryangupta1998! I had one small question.
| httpfs) | ||
| OZONE_SUBCMD_SUPPORTDAEMONIZATION="true" | ||
| OZONE_HTTPFS_OPTS="${OZONE_HTTPFS_OPTS} -Dhttpfs.home.dir=${OZONE_HOME} -Dhttpfs.config.dir=${OZONE_CONF_DIR} -Dhttpfs.log.dir=${OZONE_HOME}/log -Dhttpfs.temp.dir=${OZONE_HOME}/temp -Dlog4j.configuration=file:${OZONE_CONF_DIR}/log4j.properties" | ||
| OZONE_HTTPFS_OPTS="${OZONE_HTTPFS_OPTS} -Dhttpfs.home.dir=${OZONE_HOME} -Dhttpfs.config.dir=${OZONE_CONF_DIR} -Dhttpfs.log.dir=${OZONE_LOG_DIR} -Dhttpfs.temp.dir=${OZONE_PID_DIR} -Dlog4j.configuration=file:${OZONE_CONF_DIR}/log4j.properties" |
Contributor
There was a problem hiding this comment.
Isn't -Dhttpfs.home.dir=${OZONE_HOME} causing a problem?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
HttpFS launcher currently sets httpfs.log.dir and httpfs.temp.dir under
OZONE_HOME (${OZONE_HOME}/log,${OZONE_HOME}/temp).HttpFSServerWebApp initializes through ServerWebApp, and Server.init() validates these directories at startup. If
${OZONE_HOME}/tempis missing, startup fails withS01: Dir .../tempdoes not exist, and Jetty stops the connector.Fix: switch launcher defaults to runtime-managed directories:
This removes dependency on install-tree temp/log paths and makes HttpFS startup more robust across deployment layouts.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-15912
How was this patch tested?
Tested Manually.