You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jackson Chung (Updated) (JIRA)" <ji...@apache.org> on 2011/11/09 00:41:51 UTC

[jira] [Updated] (CASSANDRA-3220) add describe_ring to cli

     [ https://issues.apache.org/jira/browse/CASSANDRA-3220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jackson Chung updated CASSANDRA-3220:
-------------------------------------

    Attachment: patch3220.v2.diff

v2:

[default@unknown] describe ring system;
There is no ring for the keyspace: system

[default@unknown] describe ring;       
Authenticate to a Keyspace, before using `describe ring` or `describe ring <keyspace>`

[default@blah] describe ring; 
TokenRange: 
        TokenRange(start_token:0, end_token:56713727820156410577229101238628035242, endpoints:[/0.0.0.0])
        TokenRange(start_token:56713727820156410577229101238628035242, end_token:113427455640312821154458202477256070485, endpoints:[/0.0.0.0])
        TokenRange(start_token:113427455640312821154458202477256070485, end_token:0, endpoints:[0.0.0.0])
[default@blah] describe ring blah;
TokenRange: 
        TokenRange(start_token:0, end_token:56713727820156410577229101238628035242, endpoints:[/0.0.0.0])
        TokenRange(start_token:56713727820156410577229101238628035242, end_token:113427455640312821154458202477256070485, endpoints:[/0.0.0.0])
        TokenRange(start_token:113427455640312821154458202477256070485, end_token:0, endpoints:[0.0.0.0])

[default@blah] describe ring dah; 
Sorry, no Keyspace was found with name: dah

                
> add describe_ring to cli
> ------------------------
>
>                 Key: CASSANDRA-3220
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3220
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>            Reporter: Jackson Chung
>            Assignee: Jackson Chung
>            Priority: Minor
>             Fix For: 1.0.3
>
>         Attachments: patch3220.diff, patch3220.v2.diff
>
>
> Lately I have found the describe_ring feature was needed to debug/analyze issue, but the cli does not have this available.
> So just in case it is useful, please see the attached patch.
> here is the sample output:
> {noformat}
> [default@unknown] help;
> ...
> ...
> decr                    Decrements a counter column.
> describe ring           Describe the token range information.
> describe cluster        Describe the cluster configuration.
> ...
> ...
> [default@unknown] help describe ring;
> describe ring <keyspace>;
> Describes the token range settings for the named keyspace.
> Required Parameters:
> - keyspace: Name of the keyspace to describe the token range.
> Examples:
> describe ring <keyspace>; - Describes the token range settings for the named keyspace.
> [default@unknown] describe ring Keyspace3;
> TokenRange: 
>         TokenRange(start_token:9739248273232290250409572410247679660, end_token:9739248273232290250409572410247679660, endpoints:[192.168.0.125], rpc_endpoints:[192.168.0.125], endpoint_details:[EndpointDetails(host:192.168.0.125, port:9160, datacenter:168)])
> [default@unknown] describe ring fooks;
> Keyspace with name 'fooks' wasn't found, , please, authorize to one of the keyspaces first.
> [default@unknown] describe ring;
> Syntax error at position 13: mismatched input ';' expecting set null
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira