Code Monkey home page Code Monkey logo

stormroomoccupancy's Introduction

stormRoomOccupancy

Basic Storm topology example that updates DB persistent state with correct error handling. The code is based on Storm 0.9.0.1, Cassandra 2.0.4 and Java 7.

The [first release] ( https://github.com/svendx4f/stormRoomOccupancy/releases/tag/v1.0.1) is explained in great details in my blog post on [scalable real-time state update with Storm] (http://svendvanderveken.wordpress.com/2013/07/30/scalable-real-time-state-update-with-storm/)

The current code is an update explained in my blog post on [Storm error handling] ( http://svendvanderveken.wordpress.com/2014/02/01/notes-on-storm-trident-error-handling)

In order to run this example, an instance of Cassandra with the following key space is required:

CREATE KEYSPACE EVENT_POC WITH replication = { 'class': 'SimpleStrategy', 'replication_factor': '1' } ;

(tables are re-created everytime time the topology is re-deployed)

Maybe edit this line in Deployer.java if you Nimbus is not reachable on that IP:

config.put("nimbus.host" , "192.168.33.10");

Then package the topology:

mvn package

And deploy it:

storm jar target/stormRoomOccupancy-0.0.2-SNAPSHOT-jar-with-dependencies.jar svend.storm.example.conference.Deployer

stormroomoccupancy's People

Contributors

sv3ndk avatar

Watchers

James Cloos avatar christopher anabo 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.