Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0DB1574A6 for ; Thu, 10 Nov 2011 02:06:17 +0000 (UTC) Received: (qmail 75204 invoked by uid 500); 10 Nov 2011 02:06:16 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 75177 invoked by uid 500); 10 Nov 2011 02:06:16 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 75169 invoked by uid 99); 10 Nov 2011 02:06:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Nov 2011 02:06:16 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Nov 2011 02:06:13 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AD7FB459F6 for ; Thu, 10 Nov 2011 02:05:51 +0000 (UTC) Date: Thu, 10 Nov 2011 02:05:51 +0000 (UTC) From: "Jackson Chung (Commented) (JIRA)" To: commits@cassandra.apache.org Message-ID: <553343721.16307.1320890751712.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <647030627.35791.1316197509414.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-3220) add describe_ring to cli MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-3220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147444#comment-13147444 ] Jackson Chung commented on CASSANDRA-3220: ------------------------------------------ ok, i have done a nodetool version. most of the thing work.. except somehow jconsole/jmxterm doesn't. First the nodetool output: $ nodetool -h zaranth -p 8199 describering Keyspace1 TokenRange: TokenRange(start_token:0, end_token:56713727820156410577229101238628035242, endpoints:[184.106.233.162], rpc_endpoints:[184.106.233.162], endpoint_details:[EndpointDetails(host:184.106.233.162, datacenter:datacenter1, rack:rack1)]) TokenRange(start_token:56713727820156410577229101238628035242, end_token:113427455640312821154458202477256070485, endpoints:[184.106.203.196], rpc_endpoints:[184.106.203.196], endpoint_details:[EndpointDetails(host:184.106.203.196, datacenter:datacenter1, rack:rack1)]) TokenRange(start_token:113427455640312821154458202477256070485, end_token:0, endpoints:[184.106.204.143], rpc_endpoints:[184.106.204.143], endpoint_details:[EndpointDetails(host:184.106.204.143, datacenter:datacenter1, rack:rack1)]) $nodetool -h zaranth -p 8199 describering Missing keyspace argument for describering. usage: java org.apache.cassandra.tools.NodeCmd --host ... $ nodetool -h zaranth -p 8199 describering system There is no ring for the keyspace: system usage: java org.apache.cassandra.tools.NodeCmd --host ... $ nodetool -h zaranth -p 8199 describering thisdoesnotexist There is no ring for the keyspace: thisdoesnotexist usage: java org.apache.cassandra.tools.NodeCmd --host now the problem with jconsole/jmxterm: {noformat} $>run getTokenRanges Keyspace1 #calling operation getTokenRanges of mbean org.apache.cassandra.db:type=StorageService org.cyclopsgroup.jmxterm.io.RuntimeIOException: Runtime IO exception: error unmarshalling return; nested exception is: java.io.StreamCorruptedException: unexpected block data at org.cyclopsgroup.jmxterm.cc.CommandCenter.doExecute(CommandCenter.java:157) at org.cyclopsgroup.jmxterm.cc.CommandCenter.execute(CommandCenter.java:207) at org.cyclopsgroup.jmxterm.boot.CliMain.execute(CliMain.java:156) at org.cyclopsgroup.jmxterm.boot.CliMain.main(CliMain.java:48) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:353) at org.codehaus.classworlds.Launcher.launch(Launcher.java:264) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.uberjar.boot.Bootstrapper.bootstrap(Bootstrapper.java:209) at org.codehaus.classworlds.uberjar.boot.Bootstrapper.main(Bootstrapper.java:116) Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.io.StreamCorruptedException: unexpected block data at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:173) at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source) at javax.management.remote.rmi.RMIConnectionImpl_Stub.invoke(Unknown Source) at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:995) at org.cyclopsgroup.jmxterm.cmd.RunCommand.execute(RunCommand.java:137) at org.cyclopsgroup.jmxterm.cc.CommandCenter.doExecute(CommandCenter.java:189) at org.cyclopsgroup.jmxterm.cc.CommandCenter.doExecute(CommandCenter.java:153) ... 17 more Caused by: java.io.StreamCorruptedException: unexpected block data at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1342) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at java.util.ArrayList.readObject(ArrayList.java:593) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:155) ... 23 more {noformat} > 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 ; > Describes the token range settings for the named keyspace. > Required Parameters: > - keyspace: Name of the keyspace to describe the token range. > Examples: > describe ring ; - 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