This section explains how we can write a Trident hello world topology. Perform the following steps to create Trident hello world topology:
- Create a Maven project by using com.stormadvance as the groupId and storm_trident as the artifactId.
- Add the following dependencies and repositories to the pom.xml file:
<dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.storm</groupId> <artifactId>storm-core</artifactId> <version>1.0.2</version> <scope>provided</scope> </dependency> </dependencies>
- Create a TridentUtility class in a com.stormadvance.storm_trident package. This class contains the ...