Deploying the topology

To deploy the preceding topology, we must first retrieve the Storm-YAML configuration using the following command:

storm-yarn getStormConfig ../your.yaml --appId application_1381197763696_0004 --output output.yaml

The preceding command interacts with the specified instance of the Storm-YARN application to retrieve a storm.yaml file that can be used to deploy topologies by using the standard mechanisms. Simply copy the output.yaml file into the appropriate location (typically, ~/.storm/storm.yaml) and deploy using the standard storm jar command as follows:

storm jar <appJar>

Get Storm Blueprints: Patterns for Distributed Real-time Computation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.