sebgiroux / Cassandra-Cluster-Admin

Manage your Cassandra cluster in your Web browser!
http://www.wajam.com
MIT License
206 stars 66 forks source link

[Feature request] Cleanup, compact, repair, drain nodes and other JMX calls #14

Open wildstray opened 12 years ago

wildstray commented 12 years ago

It would be nice to have all JMX / nodetool functions available on JMX view (ala OpsCenter ;) ). I'm trying to deploy and add this functions and I would be happy to pull the changes... but I'm in trouble with MX4J.

http://192.168.10.91/invoke?operation=forceTableRepair&objectname=org.apache.cassandra.db%3Atype%3DStorageService&value0=&type0=java.lang.String&type1=[Ljava.lang.String%3B

MBean operation: invoke method on MBean org.apache.cassandra.db:type=StorageService Error during MBean operation invocationMessage: count of parameter types doesn't match count of parameter values

http://192.168.10.91/invoke?operation=forceTableRepair&objectname=org.apache.cassandra.db%3Atype%3DStorageService&value0=&type0=java.lang.String&type1=[Ljava.lang.String%3B&value1=

MBean operation: invoke method on MBean org.apache.cassandra.db:type=StorageService Error during MBean operation invocationMessage: Parameter 1: cannot be converted to type [Ljava.lang.String;

http://192.168.10.91/invoke?operation=forceTableRepair&objectname=org.apache.cassandra.db%3Atype%3DStorageService

MBean operation: invoke method on MBean org.apache.cassandra.db:type=StorageService Error during MBean operation invocationMessage: Operation singature has no match in the MBean

...the strange thing is that some ops (es. forceTableRepair, forceTableCleanup) have optional parameters, so it should be possibile to call that methods without parameters.

sebgiroux commented 12 years ago

This would indeed be awesome! I unfortunately have no idea what's wrong with your call tho, I didn't even know you could trigger these things with mx4j :D

When I try your forceTableRepair call, I get Error during MBean operation invocationMessage: Operation singature has no match in the MBean

That's with Cassandra 1.0.6, weird :/

sebgiroux commented 12 years ago

Btw, you could probably ask on the mailing list or on IRC (#cassandra), someone could tell you for sure :D