You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Yang <te...@gmail.com> on 2012/08/20 21:46:36 UTC

nodetool output through REST API?

I'm trying to write a little python script to manage our cassandra cluster.

it uses output from nodetool, for example to find the current token
assignment, node status etc.

I could do this by parsing output from "nodetool ring" command.

but is there a more "native way" , for example through some REST API or
python API, so that I avoid
the possible changes in formatting of the output?

I checked pycassa, it doesn't seem to have an API for the JMX services


Thanks
Yang

Re: nodetool output through REST API?

Posted by Tyler Hobbs <ty...@datastax.com>.
Your best bet is probably to set up mx4j with Cassandra, which will expose
a REST api for all of the JMX stuff.

On Mon, Aug 20, 2012 at 2:46 PM, Yang <te...@gmail.com> wrote:

> I'm trying to write a little python script to manage our cassandra cluster.
>
> it uses output from nodetool, for example to find the current token
> assignment, node status etc.
>
> I could do this by parsing output from "nodetool ring" command.
>
> but is there a more "native way" , for example through some REST API or
> python API, so that I avoid
> the possible changes in formatting of the output?
>
> I checked pycassa, it doesn't seem to have an API for the JMX services
>
>
> Thanks
> Yang
>



-- 
Tyler Hobbs
DataStax <http://datastax.com/>