How to programmatically kill a storm topology?

Viewed 7329

I am using a java class to submit a topology to the storm cluster and I also plan to use java class to kill the topology. But as per storm documentation, the following command is used to kill a topology and there is no Java method (and this has valid reasons)

storm kill {stormname}

So is it fine to call a shell script from java class to kill the topology? What are the other ways to kill topology?

Also, how to get the status of running topologies in storm cluster?

2 Answers
Related