You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "adoroszlai (via GitHub)" <gi...@apache.org> on 2025/04/16 07:05:10 UTC
[PR] HDDS-12848. Create new submodule for ozone admin [ozone]
adoroszlai opened a new pull request, #8292:
URL: https://github.com/apache/ozone/pull/8292
## What changes were proposed in this pull request?
Create a new submodule for `ozone admin` CLI by renaming `hdds-tools` to `ozone-cli-admin`. Move other subcommands of `ozone admin` from `ozone-tools` to this new module. Move marker interfaces and utils to `hdds-common`.
https://issues.apache.org/jira/browse/HDDS-12848
## How was this patch tested?
CI:
https://github.com/adoroszlai/ozone/actions/runs/14485071028
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-12848. Create new submodule for ozone admin [ozone]
Posted by "Tejaskriya (via GitHub)" <gi...@apache.org>.
Tejaskriya commented on code in PR #8292:
URL: https://github.com/apache/ozone/pull/8292#discussion_r2063108322
##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/cli/AdminSubcommand.java:
##########
Review Comment:
Okay got it, makes sense. The changes LGTM!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-12848. Create new submodule for ozone admin [ozone]
Posted by "Tejaskriya (via GitHub)" <gi...@apache.org>.
Tejaskriya commented on code in PR #8292:
URL: https://github.com/apache/ozone/pull/8292#discussion_r2063060089
##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/cli/AdminSubcommand.java:
##########
Review Comment:
What's the reason for moving these files under `hdds-common` instead of moving it to `ozone-tools` or the newly created `cli-admin` package? AFAIK, all the usages seem to be in the tools itself.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-12848. Create new submodule for ozone admin [ozone]
Posted by "nandakumar131 (via GitHub)" <gi...@apache.org>.
nandakumar131 commented on PR #8292:
URL: https://github.com/apache/ozone/pull/8292#issuecomment-2829497086
@adoroszlai, why do we want to move SCM/Datanode (HDDS Layer) admin commands from `hadoop-hdds` to `hadoop-ozone` module?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-12848. Create new submodule for ozone admin [ozone]
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on code in PR #8292:
URL: https://github.com/apache/ozone/pull/8292#discussion_r2063104686
##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/cli/AdminSubcommand.java:
##########
Review Comment:
My goal was to reduce change for this patch.
These interfaces are currently in the `org/apache/hadoop/hdds/cli` directory, which does not exist in `cli-admin` and `ozone-tools`. We could create those, but then we'd need to add `package-info.java` in each.
In the long run I would like to move those interfaces to better match the package hierarchy, ie. to `org/apache/hadoop/ozone/admin`, etc. But that requires changing imports in several files, which inflates the patch, so it's better to make it in a separate PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-12848. Create new submodule for ozone admin [ozone]
Posted by "nandakumar131 (via GitHub)" <gi...@apache.org>.
nandakumar131 commented on PR #8292:
URL: https://github.com/apache/ozone/pull/8292#issuecomment-2834093597
The initial idea for having separate block space layer (HDDS) is so that we can write multiple namespace layer (like OzoneManager) on top of HDDS layer to provide different services. The project evolved and deviated from the initial idea, now we won't have any tools (CLI) if we don't install OzoneManager.
HDDS (SCM + Datanode) with some new Namespace implementation will have to write their own set of tools even to access or debug SCM & Datanodes directly using CLI.
We should have added `hdds` commands, it was missed. Now everything is under `ozone`.
Now, I don't think we will ever run HDDS (SCM + Datanode) without Ozone Manager.
@adoroszlai, your explanation makes sense. Let's move forward with this change.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-12848. Create new submodule for ozone admin [ozone]
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #8292:
URL: https://github.com/apache/ozone/pull/8292#issuecomment-2839739580
Thanks @nandakumar131, @Tejaskriya for the review.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-12848. Create new submodule for ozone admin [ozone]
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #8292:
URL: https://github.com/apache/ozone/pull/8292#issuecomment-2830824144
> why do we want to move SCM/Datanode (HDDS Layer) admin commands from `hadoop-hdds` to `hadoop-ozone` module?
Because there is no `hdds admin` command and `hdds-tools` does not have classpath file generated. This separation of tools between HDDS and Ozone is thus unnecessary. It is better to separate CLI commands based on top-level subcommand (`ozone sh`, `ozone admin`, etc.).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-12848. Create new submodule for ozone admin [ozone]
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai merged PR #8292:
URL: https://github.com/apache/ozone/pull/8292
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org