I run Apache Storm in a cluster and I was looking for ways to stop and/or restart Nimbus, Supervisor and UI. Would writting a servise help? What should I write in this service file and where should I place it? Thank you in advance
How can I stop Apache Storm Nimbus, UI and Supervisor?
1.9k views Asked by Nicole At
3
Yes, writing a service is the recommended way to run Storm. The commands you want to run are
storm nimbusto start Nimbus (minimum 1 per cluster),storm supervisorto run the supervisor (1 per worker machine),storm ui(1 per cluster) andstorm logviewer(1 per worker machine). There are other commands you can also run, but you can find these by simply runningstorm, it will print a list.Regarding how to write the service, take a look at the upstart cookbook http://upstart.ubuntu.com/cookbook/.
There's an example script here you can probably use to get started https://unix.stackexchange.com/a/84289