[ 
https://issues.apache.org/jira/browse/HDDS-13249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18001382#comment-18001382
 ] 

Sreeja edited comment on HDDS-13249 at 7/7/25 9:30 AM:
-------------------------------------------------------

If you want to view the details of a container by providing its ID (assuming 
you have already parsed the dn-container logs and it is stored in DB) then,
The command is as follows :
{code:java}
ozone debug log container info <container id>{code}
for example:
{code:java}
ozone debug log container info 4111{code}
if we do not provide the database path via command and if the database file is 
not present in the current location then the bellow message would be shown.
{code:java}
No database path provided and default file 'container_datanode.db' not found in 
current directory. Please provide a valid database path{code}
 

or if you want to use the datanode debug command to view the details of a 
container by providing its ID,
the command is as follows :
{code:java}
ozone debug datanode container info --container=<containerId>{code}


was (Author: JIRAUSER308351):
If you want to view the details of a container by providing its ID (assuming 
you have already parsed the dn-container logs and it is stored in DB) then,
The command is as follows :
{code:java}
ozone debug log container info <container id>{code}
for example:
{code:java}
ozone debug log container info 4111{code}
if we do not provide the database path via command and if the database file is 
not present in the current location then the bellow message would be shown.
{code:java}
No database path provided and default file 'container_datanode.db' not found in 
current directory. Please provide a valid database path{code}
or if you want to use the datanode debug command to view the details of a 
container by providing its ID,
the command is as follows :
{code:java}
ozone debug datanode container info --container=<containerId>{code}

> Issue with debug container command with the default VERSION path
> ----------------------------------------------------------------
>
>                 Key: HDDS-13249
>                 URL: https://issues.apache.org/jira/browse/HDDS-13249
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: Ozone CLI
>    Affects Versions: 2.0.0
>            Reporter: Soumitra Sulav
>            Assignee: Sreeja
>            Priority: Major
>
> The debug container command fails by pointing to the default invalid version 
> path
> {code:java}
> # ozone debug container info --container=4111
> /tmp/hadoop-root/dfs/data/hdds/VERSION (No such file or directory)
> # ozone debug container inspect
> /tmp/hadoop-root/dfs/data/hdds/VERSION (No such file or directory)
> # ls /hadoop-ozone/datanode/data/hdds/VERSION
> /hadoop-ozone/datanode/data/hdds/VERSION
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org
For additional commands, e-mail: issues-h...@ozone.apache.org

Reply via email to