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

Deploying a topology

This section will explain how you can deploy the LogProcessingTopology topology. To deploy this topology, perform the following steps:

  1. Execute the following command on the MySQL console to define a database schema:
    create database apachelog;
    use apachelog;
    create table apachelog(
         id INT NOT NULL AUTO_INCREMENT,
         ip VARCHAR(100) NOT NULL,
         dateTime VARCHAR(200) NOT NULL,
         request VARCHAR(100) NOT NULL,
         response VARCHAR(200) NOT NULL,
         bytesSent VARCHAR(200) NOT NULL,
         referrer VARCHAR(500) NOT NULL,
         useragent VARCHAR(500) NOT NULL,
         country VARCHAR(200) NOT NULL,
         browser VARCHAR(200) NOT NULL,
         os VARCHAR(200) NOT NULL,
         keyword VARCHAR(200) NOT NULL,
         PRIMARY KEY (id)
      );
    
  2. Before running the log-processing use cases, we ...

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