The final step in the development process is to functionally test the topology in a cluster before promoting it to the next environment.
First you need to configure the Storm client on your host development machine by creating the
.storm
folder in your user home directory. Createstorm.yaml
in this folder with the following content:storm.local.dir: "/mnt/storm" nimbus.host: "192.168.33.100"
Package your topology using the following command within the project's root:
mvn package
This will produce a completely packaged JAR in the target folder of the project. You can deploy this to the cluster using the
storm
client command:storm jar jarName.jar [TopologyName] [Args]
The storm
command-line client provides you with all the tools you need to control the cluster's functionality. Part of this is the ability to deploy packaged topologies. For more information on the storm CLI, please review the detailed documentation on the wiki at https://github.com/nathanmarz/storm/wiki/Command-line-client.