Skip to content

HDDS-15954. Document ozone daemonlog command - #10882

Open
F64116045 wants to merge 2 commits into
apache:masterfrom
F64116045:HDDS-15954-daemonlog-doc
Open

HDDS-15954. Document ozone daemonlog command#10882
F64116045 wants to merge 2 commits into
apache:masterfrom
F64116045:HDDS-15954-daemonlog-doc

Conversation

@F64116045

@F64116045 F64116045 commented Jul 28, 2026

Copy link
Copy Markdown

What changes were proposed in this pull request?

This pull request documents the existing ozone daemonlog command in the Ozone logging tools documentation. It explains how to get and set runtime log levels for Ozone daemon loggers through their HTTP endpoints, and adds examples for checking, increasing, and resetting a logger level.

It also adds daemonlog to the tools overview page so users can discover the command from the CLI tools list.

What is the link to the Apache JIRA

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

How was this patch tested?

git diff --check
./hadoop-ozone/dev-support/checks/docs.sh

@F64116045
F64116045 marked this pull request as ready for review July 28, 2026 01:50

@sreejasahithi sreejasahithi 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 @F64116045 for updating the doc.

Comment on lines +105 to +106
The `<host:port>` value is the daemon HTTP address. For example, the default HTTP ports are `9874` for Ozone Manager, `9876` for Storage Container Manager, `9882` for Datanode, `9878` for S3 Gateway, and `9888` for Recon.

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.

Here it states 9878 for S3 Gateway, but daemonlog talks to the /logLevel servlet. On S3G, that servlet is on the web admin server, not the S3 API port.

The log-level endpoint is on the web admin port 19878 (S3GatewayWebAdminServer), config key ozone.s3g.webadmin.http-address.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thanks for catching this. I updated the S3 Gateway entry to use the web admin HTTP address (ozone.s3g.webadmin.http-address, default 19878) instead of the S3 API port (9878).

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