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!
CLICK HERE to find out more related problems solutions.