[
https://issues.apache.org/jira/browse/HDDS-10776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17846915#comment-17846915
]
Tejaskriya Madhan commented on HDDS-10776:
------------------------------------------
Currently, we have `ozone admin container list` command which gives a list of
containers. We can then use `ozone admin container info <id>` command to get
the replica details. Sample output:
{code:java}
# ozone admin container info 1001
Container id: 1001
Pipeline id: e933fd02-5ea0-43e2-881a-040ee2042a6a
Container State: OPEN
Datanodes:
[622cdd3b-50bf-4b36-a20a-20405893cc10/ccycloud-2.tej5s3.root.comops.site,
64c53da7-2363-4072-8f16-747ba74cb5cb/ccycloud-1.tej5s3.root.comops.site,
b772fff5-1938-4335-957c-404be9325363/ccycloud-5.tej5s3.root.comops.site]
Replicas: [State: OPEN; ReplicaIndex: 0; Origin:
622cdd3b-50bf-4b36-a20a-20405893cc10; Location:
622cdd3b-50bf-4b36-a20a-20405893cc10/ccycloud-2.tej5s3.root.comops.site,
State: OPEN; ReplicaIndex: 0; Origin: 64c53da7-2363-4072-8f16-747ba74cb5cb;
Location:
64c53da7-2363-4072-8f16-747ba74cb5cb/ccycloud-1.tej5s3.root.comops.site,
State: OPEN; ReplicaIndex: 0; Origin: b772fff5-1938-4335-957c-404be9325363;
Location:
b772fff5-1938-4335-957c-404be9325363/ccycloud-5.tej5s3.root.comops.site] {code}
Comparing with hdfs fsck, the portion of information not present in the
commands is container to key mapping. But this can also be found with using a
recon endpoint `/api/v1/container/:id/keys`. (See
[https://ozone.apache.org/docs/current/interface/swaggerreconapi.html#/Containers%20and%20Keys/getKeysForContainer]
for more information)
We can do any of the following, depending on what the requirement is:
1. Create a command to consolidate information from the recon endpoint
`/api/v1/container/:id/keys` and `ozone admin container info` command, to get
output similar to `hdfs fsck -blockID`
2. We have blocks inside containers. We could have mapping from block to key
and introduce another recon API to do that.
3. Have a tool to iterate over keys from OM and check if blocks for the keys
are present, perform some validations and report inconsistencies just like hdfs
fsck.
[~nakumar] could you please check regarding the above points and see what the
requirement is?
> determine container pipeline information similar to blocks pipeline in HDFS
> ---------------------------------------------------------------------------
>
> Key: HDDS-10776
> URL: https://issues.apache.org/jira/browse/HDDS-10776
> Project: Apache Ozone
> Issue Type: New Feature
> Components: Ozone CLI
> Reporter: Navin Kumar
> Assignee: Tejaskriya Madhan
> Priority: Major
>
> ➤ Need Something similar to hdfs fsck for Ozone CLI where using single
> command we can fetch all three container information for the pipeline.
> * We can get the list of container using ozone admin commands and container
> info under scm.db by using ozone debug ldb commands . But unfortunately we do
> not have such utility in ozone like fsck in hdfs where we can get container
> pipeline info .
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]