Git Product home page Git Product logo

ansible-hadoop's Introduction

Ansible Hadoop

Need Help?: Issues Tracking | [email protected]
Contributing: Contribution Guide
License: Apache 2.0

Ansible Haddop is a playbook that help you to deploy a new Hadoop (CDH4) and Spark cluster on a CentOS 6 or RHEL 6 environment using Ansible.

The playbooks can:

  1. Deploy a fully functional Hadoop cluster with High Availability (HA) and automatic failover.
  2. Deploy additional nodes to scale the cluster (datanodes and spark workers)

List of services

  • Hadoop CDH4
    • Zookeeper
    • Journalnode
    • HDFS
  • Apache Spark
  • Elasticsearch --OPTIONAL--
  • Ganglia --OPTIONAL--

Requirements

  • Ansible 1.6+
  • CentOS 6.5+ or RedHat servers

Configuration

edit the files:

  • hosts : Set the hosts and services
  • group_vars/all: to change/add more configuration parameters (ex: hdfs path, spark port etcetc)
site_name: mycluster					# The name of your cluster
with_elasticsearch: True/False		# If true, deploy an Elasticsearch cluster.
update_iptables: True/False			# If True, change iptables file to add ip_range.
update_hosts: True/False				# If True, set the hosts file to every host in the cluster.
install_oracle_jdk: True/False		# If True, download and Install Oracle JDK from oracle server. 
with_ganglia: True/False				# If True, deploy ganglia to monitor your cluster health.

spark:
  version: 1.2.1						# Set the version of Spark you want to deploy
  
elasticsearch:
  version: 1.4.1						# Set the version of Elasticsearch you want to deploy
  									# (**only if with_elasticsearch is True**)

Deploy a new cluster

To run with Ansible:

./deploy

To e.g. just install ZooKeeper, add the zookeeper tag as argument. available tags:

  • elasticsearch
  • hadoop
  • ntp
  • zookeeper
  • slaves
  • spark
  • ganglia
./deploy zookeeper

Services url

Dont forget to open the port of the hosts if you want to access to your cluster remotely.

  • HDFS : active: master:50070 - active
  • HDFS : stand by: master2:50070 - standby
  • Spark Master : active: master:8080
  • Spark Master2 : stand by: master2:8080
  • Elasticsearch: eshost:9200
  • Ganglia: monitor:80

Restart service or cluster

restart all services run

./restart

If you want just restart some services run:

./restart serviceName

List of service that can be restarted

  • zookeepers
  • journalnodes
  • elasticsearch
  • namenodes
  • datanodes
  • sparkmasters
  • sparckworkers

ansible-hadoop's People

Contributors

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