Skip to content

Conversation

@vtutrinov
Copy link
Contributor

@vtutrinov vtutrinov commented May 22, 2024

What changes were proposed in this pull request?

Ozone's services startup scripts (e.g. ozone-functions.sh) require the log4j.properties config file to be in $OZONE_CONF_DIR. If the config file isn't there the OZONE_CONF_DIR env variable will be overridden as $OZONE_HOME/etc/hadoop (but all of the required and properly filled configuration files are in the previous location).

The PR suggests changing the requirement from log4j.properties to ozone-site.xml configuration file (at least SCM can't start without some mandatory conf properties inside, but all of the ozone's services can work without logger config (we won't see any log message, but the service will work anyway)

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-10898

How was this patch tested?

manually (mvn build and docker-compose up, + number of commands to deal with ozone cluster: create bucket, put key, get key), a green build is here - https://github.com/vtutrinov/ozone/actions/runs/9188563850

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

Thanks @vtutrinov for the patch.

@adoroszlai adoroszlai changed the title HDDS-10898. change required conf file from log4.properties to ozone-site.xml HDDS-10898. Validate OZONE_CONF_DIR by presence of ozone-site.xml, not log4.properties May 22, 2024
@adoroszlai adoroszlai merged commit 6f30f2f into apache:master May 23, 2024
vtutrinov pushed a commit to vtutrinov/ozone that referenced this pull request Jul 15, 2025
Merge in SDP/component-ozone from SDPOZN-707-ozone-1.4-log4j-upgrade to sdp-ozone-1.4

* commit '258bef5769bcff132f583f08ba5459bbbdaa072a':
  HDDS-10898. Validate OZONE_CONF_DIR by presence of ozone-site.xml (apache#6713)
  [SDPOZN-707] log4j2-slf4j-provider
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