How can I stop Apache Storm Nimbus, UI and Supervisor?

1.9k views Asked by At

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

3

There are 3 answers

3
Stig Rohde Døssing On

Yes, writing a service is the recommended way to run Storm. The commands you want to run are storm nimbus to start Nimbus (minimum 1 per cluster), storm supervisor to run the supervisor (1 per worker machine), storm ui (1 per cluster) and storm logviewer (1 per worker machine). There are other commands you can also run, but you can find these by simply running storm, 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

0
Nilesh Chhapru On

you can make them as service and start them up as the node starts and same can be used to stop them.

/etc/rc.d/SERVICE start or stop or restart

0
Nicole On

We can easily stop them using the command "ps -aux | grep nimbus" or supervisor etc. Then we have to find the process id and kill it with the “kill” command.