Giter Site home page Giter Site logo

montecarloarea's Introduction

MonteCarloArea

Example framework used in Apache Mesos Essentials book. Current master of this repo uses latest version of Mesos. If you want to see the version used in the book, look at branch-0.23.

Run with docker-compose

To try the framework with docker compose use the following steps after installing docker-compose:

  1. Clone this repo using

    git clone https://github.com/dharmeshkakadia/MonteCarloArea/ && cd MonteCarloArea
  2. Compile our code and create a jar.

    mvn package
  3. Lets create a Mesos cluster using Mesosphere docker images. Mesos web interface will be available at http://localhost:5050. (If you are using boot2docker substitute the IP of the docker VM). Note that the target directory from the project root is mounted under /tmp/bin in all Mesos master and slave containers.

    docker-compose up -d
  4. Now lets run it ! You should see the area calculated in the output.

    docker exec  montecarloarea_master_1 bash -c "java -cp /tmp/bin/MonteCarloArea-1.0-SNAPSHOT.jar org.packt.mesos.App zk://zk:2181/mesos 4  x 0 10 0 10 1000"
  5. You can stop the Mesos cluster, using

    docker-compose stop

montecarloarea's People

Contributors

dharmeshkakadia 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.