[
https://issues.apache.org/jira/browse/HDDS-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16626560#comment-16626560
]
Hanisha Koneru commented on HDDS-538:
-------------------------------------
[~nmaheshwari],
{{scmcli}} works for open containers too. But it does not show up containers in
"ALLOCATED" state. These containers have not yet been created and hence are not
displayed by the {{info}} command.
{code:java}
➜ bin ./ozone scmcli info 1
Container id: 1
Container State: OPEN
Container Path:
/Users/hkoneru/tmp/data-ozone/data/hdds/bc19cbd1-cb74-4873-a451-6e639299d635/current/containerDir0/1/metadata
Container Metadata:
LeaderID: localhost
Datanodes: [localhost]
{code}
> ozone scmcli is broken
> ----------------------
>
> Key: HDDS-538
> URL: https://issues.apache.org/jira/browse/HDDS-538
> Project: Hadoop Distributed Data Store
> Issue Type: Bug
> Reporter: Namit Maheshwari
> Priority: Major
>
> None of the below commands work for scmcli
> {code:java}
> [root@ctr-e138-1518143905142-481027-01-000002 bin]# ./ozone scmcli list
> Missing required option '--start=<startId>'
> Usage: ozone scmcli list [-hV] [-c=<count>] -s=<startId>
> List containers
> -c, --count=<count> Maximum number of containers to list
> Default: 20
> -h, --help Show this help message and exit.
> -s, --start=<startId> Container id to start the iteration
> -V, --version Print version information and exit.
> [root@ctr-e138-1518143905142-481027-01-000002 bin]# ./ozone scmcli list -c=1
> Missing required option '--start=<startId>'
> Usage: ozone scmcli list [-hV] [-c=<count>] -s=<startId>
> List containers
> -c, --count=<count> Maximum number of containers to list
> Default: 20
> -h, --help Show this help message and exit.
> -s, --start=<startId> Container id to start the iteration
> -V, --version Print version information and exit.
> [root@ctr-e138-1518143905142-481027-01-000002 bin]# ./ozone scmcli list -c=1
> -s
> Missing required parameter for option '--start' (<startId>)
> Usage: ozone scmcli list [-hV] [-c=<count>] -s=<startId>
> List containers
> -c, --count=<count> Maximum number of containers to list
> Default: 20
> -h, --help Show this help message and exit.
> -s, --start=<startId> Container id to start the iteration
> -V, --version Print version information and exit.
> [root@ctr-e138-1518143905142-481027-01-000002 bin]# ./ozone scmcli -s
> Unknown option: -s
> Possible solutions: --scm, --set
> [root@ctr-e138-1518143905142-481027-01-000002 bin]# ./ozone scmcli --start
> Unknown option: --start
> Usage: ozone scmcli [-hV] [--verbose] [--scm=<scm>] [-D=<String=String>]...
> [COMMAND]
> Developer tools to handle SCM specific operations.
> --scm=<scm> The destination scm (host:port)
> --verbose More verbose output. Show the stack trace of the errors.
> -D, --set=<String=String>
> -h, --help Show this help message and exit.
> -V, --version Print version information and exit.
> Commands:
> list List containers
> info Show information about a specific container
> delete Delete container
> create Create container
> close close container
> [root@ctr-e138-1518143905142-481027-01-000002 bin]#
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]