A sample Trident topology

This section explains how you can write a Trident topology. We will perform the following steps to create a sample Trident topology:

  1. Create a Maven project using com.learningstorm as the group ID and trident-example as the artifact ID.
  2. Add the following dependencies and repositories in the pom.xml file:
    <dependencies>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>3.8.1</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>storm</groupId>
        <artifactId>storm</artifactId>
        <version>0.9.0.1</version>
        <scope>provided</scope>
      </dependency>
    </dependencies>
    
    <repositories>
      <repository>
        <id>clojars.org</id>
        <url>http://clojars.org/repo</url>
      </repository>
    </repositories>
  3. Create a TridentUtility ...

Get Learning Storm now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.