Giter Site home page Giter Site logo

oubiwann / jython-storm-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jimbaker/jython-storm-starter

0.0 1.0 1.0 140 KB

Run Jython code within the Storm framework for distributed and fault-tolerant realtime computation

Python 100.00%

jython-storm-starter's Introduction

Setup

This will be replaced by a much better setup. But for now:

You need Storm installed with its bin directory on $PATH.

Checkout the proxymaker branch of Jython and build it. It includes a necessary fix for using Jython with Clojure types, as used in Storm, in Jython trunk, as well as new custom proxy maker support for better Java integration

$ hg clone ssh://[email protected]/jimbaker/proxymaker
$ cd proxymaker 
$ ant                                                 # build development version (fastest way)
$ export PATH=$(pwd)/dist/bin:$PATH                   # add jython to your path

Two more steps:

  1. Build an "uber" jar file for Storm; this contains all necessary jars. Running storm classpath computes the necessary classpath for Storm dependencies:
$ CLASSPATH="$(storm classpath)" jython27 gen-storm-jar.py -o uber.jar -i excl -i clamp --proxy=excl.plumbing
  1. Run the topology. Either stand alone mode, using run-exclamation-topology.py, which was bundled in the uber jar step:
$ CLASSPATH="$(storm classpath):$(pwd)/uber.jar" java org.python.util.jython run-exclamation-topology.py

or on the storm cluster by submitting the uber jar; the corresponding cluster submitting code is in __run__.py:

$ storm jar uber.jar org.python.util.JarRunner

jython-storm-starter's People

Contributors

jimbaker avatar

Watchers

James Cloos 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.