Skip to content

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
apache:masterfrom
aryangupta1998:HDDS-15912
Open

HDDS-15912. HttpFS Gateway launcher should use runtime-managed log/temp dirs instead of OZONE_HOME paths.#10811
aryangupta1998 wants to merge 1 commit into
apache:masterfrom
aryangupta1998:HDDS-15912

Conversation

@aryangupta1998

Copy link
Copy Markdown
Contributor

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}/temp is missing, startup fails with S01: Dir .../temp does not exist, and Jetty stops the connector.

Fix: switch launcher defaults to runtime-managed directories:

httpfs.log.dir=${OZONE_LOG_DIR}
httpfs.temp.dir=${OZONE_PID_DIR}

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.

@aryangupta1998 aryangupta1998 changed the title HttpFS Gateway launcher should use runtime-managed log/temp dirs instead of OZONE_HOME paths. HDDS-15912. HttpFS Gateway launcher should use runtime-managed log/temp dirs instead of OZONE_HOME paths. Jul 19, 2026
@jojochuang
jojochuang requested a review from dombizita July 20, 2026 16:19

@dombizita dombizita left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't -Dhttpfs.home.dir=${OZONE_HOME} causing a problem?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants