Coder Social home page Coder Social logo

temp-readings's Introduction

temperature readings

Setup

$ cd deploy/
$ docker-compose --env-file .env up -d
$ create-topic SOME_TOPIC

Setup your [Kaggle] credentials by downloading kaggle.json with your own credentials.

$ cd deploy/
$ download-data.sh
$ cat temperature-readings-iot-devices.zip

Start publishing 'real time' data to kafka by running

$ cd deploy/
$ publish.sh SOME_TOPIC

Build our topology jar

$ mvn clean package
$ cp ./path/to/target/jar ./deploy/nimbus/deploy

If you are using the deploy/ directory as is, then the docker-compose will mount deploy/nimbus/deploy to /deploy on the container. So open a shell in that container

$ docker exec -it nimbus /bin/bash

Once you are in the container, then the last step will be to submit the topology into storm. To make it easier to script, I just added a run.sh into that location so that you can just exec in the shell.

# cd /deploy
# TYPE=temp
# sh run_${TYPE}.sh

Finally, you can observe the topology via storm-ui.

To kill a running topology, just open a shell in the nimbus container and run:

# TOPOLOGY_NAME=temperature
# WAIT_SECONDS=1
# storm kill $TOPOLOGY_NAME -w $WAIT_SECONDS

temp-readings's People

Contributors

nhomble avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.