O'Reilly logo

Learning Storm by Anand Nalya, Ankit Jain

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a Trident topology to build the clustering model

Now that we have the data to be used to train and predict in place, we will develop the Trident topology using the Trident-ML library.

Again, we will create a Maven project to implement our topology. The following are the steps to create this project:

  1. Create a new Maven project with the com.learningstorm group ID and the ml artifact ID.
  2. Add the following dependencies for Kafka in the pom.xml file:
    <!-- Dependency for Storm --> <dependency> <groupId>storm</groupId> <artifactId>storm-core</artifactId> <version>0.9.0.1</version> <scope>provided</scope> </dependency> <!-- Dependency for Storm-Kafka spout --> <dependency> <groupId>net.wurstmeister.storm</groupId> <artifactId>storm-kafka-0.8-plus</artifactId> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required