Giter VIP home page Giter VIP logo

geotrellis-ec2-cluster's Introduction

geotrellis-ec2-cluster

This project attempts to aid in the process of setting up (locally, and on Amazon EC2) a GeoTrellis environment for leveraging its integration with Spark.

The entire process will install and configure the following dependencies:

  • Accumulo
  • HDFS
  • Marathon
  • Mesos
  • Spark
  • Zookeeper

Local Development

Vagrant 1.6+, Ansible 1.8+, and the vagrant-hostmanager Vagrant plug-in are used to setup the development environment for this project. It consists of the following virtual machines:

  • leader
  • follower01
  • follower02

The leader virtual machine is overloaded with a Mesos and Accumulo leader, Marathon, Zookeeper, and an HDFS NameNode. The follower* virtual machines are Mesos followers, Accumulo tablet servers, as well as HDFS DataNodes.

Use the following command to bring up a local development environment:

$ vagrant up

Note: This step may prompt you for a password so that the vagrant-hostmanager plugin can add records to the virtual machine host's /etc/hosts file.

After provisioning is complete, you can view the Mesos web console by navigating to:

Service UIs

Service Port URL
Mesos 5050 http://localhost:5050
Marathon 8080 http://localhost:8080
HDFS 50070 http://localhost:50070
Accumulo 50095 http://localhost:50095
Graphite 8081 http://localhost:8081
ElasticSearch 9200 http://localhost:9200
Grafana 8090 http://localhost:8090

Note: Statsite (the C port of StatsD) is also running alongside Graphite, but its port number (8125) is not forwarded because it is meant for intra-cluster communication.

Caching

In order to speed up things up, you may want to consider using installing the vagrant-cachier plugin:

$ vagrant plugin install vagrant-cachier

Testing

Testing the Mesos/Spark integration consists of running a few tasks in the spark-shell from the Mesos leader.

First, login to the Mesos leader:

$ vagrant ssh leader

From there, launch the spark-shell and run the test program:

vagrant@leader:~$ spark-shell --master mesos://zk://zookeeper.service.geotrellis-spark.internal:2181/mesos
scala> val data = 1 to 10000
scala> val distData = sc.parallelize(data)
scala> distData.filter(_< 10).collect()

If all goes well, you should be able to see Spark distributing bits of the filter across the follower* virtual machines.

Deployment

For more details around the Amazon Web Services deployment process, please see the deployment README.

geotrellis-ec2-cluster's People

Contributors

hectcastro avatar lossyrob avatar notthatbreezy avatar

Watchers

 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.