Search code examples
cassandracassandra-3.0cassandra-2.0

How to execute nodetool status command in python?


nodetool command

I can get my database status by using this command in shell. How can I execute this command through python? Can you help me out?


Solution

  • The nodetool utility is designed for use on the command line so you can either get information or perform operations on the cluster. It isn't intended to be run programatically.

    Your question doesn't make much sense. Perhaps if you provide a bit more detail on what outcome you're after, we'd be able to give you a better answer. Cheers!