[
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 <arg> <command>
...
$ nodetool -h zaranth -p 8199 describering system
There is no ring for the keyspace: system
usage: java org.apache.cassandra.tools.NodeCmd --host <arg> <command>
...
$ nodetool -h zaranth -p 8199 describering thisdoesnotexist
There is no ring for the keyspace: thisdoesnotexist
usage: java org.apache.cassandra.tools.NodeCmd --host <arg> <command>
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 <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