It is very easy to write a topology and submit to the same Storm Cluster.
But problem arises when we need to submit a topology remotely to remote Storm cluster from a local machine.
What should we do in that case?
Here is the approach to submit a topology to remote cluster.
I have a local windows machine and one Storm Cluster(1 nimbus Linux machine and 2 supervisor Linux machine)
Let's say following are the machines in cluster :
Nimbus Machine : 192.168.1.5
Supervisor Machine 1: 192.168.1.6
Supervisor Machine 2: 192.168.1.7
Storm cluster should be up and running on above machine.
Now from local machine, use NimbusClient to submit Jar to cluster.
Here is a running example:
It will submit a topology on Nimbus Machine where it’ll run on 2 supervisor machines(192.168.1.6 and 192.168.1.7)
To test it, open storm UI in browser : http://<nimbus-ip>:<port>