Running the topology – the MongoDB case

We have a few more small things to address before we run the topology:

  1. Copy the logconfig.ini file from the second example in Chapter 3, Introducing Petrel to this topology's directory.
  2. Create a file called setup.sh:
    pip install -U pip
    pip install nltk==3.0.1 oauthlib==0.7.2 tweepy==3.2.0 geotext==0.1.0 pymongo==3.0.3
  3. Next, create a file called manifest.txt. This is identical to the Redis example.

    Install the MongoDB server. On Ubuntu, you can use the instructions given at http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/.

  4. Install the Python MongoDB client on all Storm worker machines:
    pip install pymongo==3.0.3
  5. To verify that pymongo is installed and the index is created correctly, start an interactive ...

Get Building Python Real-Time Applications with Storm 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.