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

Jackson Chung commented on CASSANDRA-3220:
------------------------------------------

more sample... i didn't actually test the authentication keyspace and actually 
on a cluster, but they should work.

{noformat}
[default@unknown] describe ring system;
null
InvalidRequestException(why:There is no ring for the keyspace: system)
        at 
org.apache.cassandra.thrift.Cassandra$describe_ring_result.read(Cassandra.java:23267)
        at 
org.apache.cassandra.thrift.Cassandra$Client.recv_describe_ring(Cassandra.java:1262)
        at 
org.apache.cassandra.thrift.Cassandra$Client.describe_ring(Cassandra.java:1237)
        at 
org.apache.cassandra.cli.CliClient.executeDescribeRing(CliClient.java:1437)
        at 
org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:288)
        at 
org.apache.cassandra.cli.CliMain.processStatementInteractive(CliMain.java:222)
        at org.apache.cassandra.cli.CliMain.main(CliMain.java:350)
{noformat}

> add describe_ring to cli
> ------------------------
>
>                 Key: CASSANDRA-3220
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3220
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Jackson Chung
>            Priority: Minor
>         Attachments: patch3220.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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to