[
https://issues.apache.org/jira/browse/HDDS-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16626053#comment-16626053
]
Hanisha Koneru commented on HDDS-538:
-------------------------------------
Hi [~nmaheshwari],
The correct syntax for scmcli list command is
{code:java}ozone scmcli list [-hV] [-c=<count>] -s=<startId>{code}
"-c=<count>" is an optional parameter but "-s=<startId>" is required. The
following command should work.
{code}ozone scmcli list -s=1{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]