hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Namit Maheshwari (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDDS-538) ozone scmcli is broken
Date Mon, 24 Sep 2018 21:30:00 GMT

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

Namit Maheshwari commented on HDDS-538:
---------------------------------------

Thanks [~hanishakoneru], yes it is working fine with :
{code:java}
[root@ctr-e138-1518143905142-481027-01-000002 bin]# ./ozone scmcli list -s=1
{
"state" : "ALLOCATED",
"replicationFactor" : "THREE",
"replicationType" : "RATIS",
"allocatedBytes" : 0,
"usedBytes" : 0,
"numberOfKeys" : 0,
"lastUsed" : 7017303112,
"stateEnterTime" : 3731649177,
"owner" : "e4d4ed93-d6ec-480b-ab6c-6683e2e1ee7c",
"containerID" : 1,
"deleteTransactionId" : 0,
"containerOpen" : true
}
{
"state" : "OPEN",
"replicationFactor" : "THREE",
"replicationType" : "RATIS",
"allocatedBytes" : 134217728,
"usedBytes" : 134217728,
"numberOfKeys" : 1,
"lastUsed" : 7017303112,
"stateEnterTime" : 3731650367,
"owner" : "e4d4ed93-d6ec-480b-ab6c-6683e2e1ee7c",
"containerID" : 2,
"deleteTransactionId" : 0,
"containerOpen" : true
}{code}
However, the scmcli info command does not return anything for container Id 1, which is available
as per above
{code:java}
[root@ctr-e138-1518143905142-481027-01-000002 bin]# ./ozone scmcli info 1
ContainerID 1 does not exist
{code}
Does the scmcli info only work for Closed containers?
 

> 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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message