Giter Site home page Giter Site logo

cdh-ansible's Introduction

cdh-ansible

cdh-ansible is an ansible-based Cloudera's Distribution of Apache Hadoop deployer for Red Hat/CentOS nodes.

Features

  • Easy to configure (just modifying nodes.yml file for basic configuration)
  • Operating System level tuning
  • Active Directory / LDAP integration and SSSD
  • Customizable CDH version installer
  • Cloudera Manager installer on Service Nodes

You can also:

  • Launch cloud infrastructure using Terraform
  • Configure deployment to multiple environments

Technology

cdh-ansible uses a number of open source projects to work properly:

  • Ansible - Ansible is a radically simple IT automation system.
  • Terraform - Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently.

Configuration

The files specified below should be configured:

File Description
/group_vars/environment/nodes.yml Configure your cluster's topology

nodes.yml

This file contains information related to your environment. In particular, it should contain detailed info about your nodes. Syntax is specified below:

nodes:
  <NODE_NAME>:
    disks:
    - {dev: <DEVICE_NAME_IN_OS>, fs: <CREATE_FS_ON_DEV>, mount: <MOUNT_POINT>, size: <SIZE_IN_GB>, type: <DEV_TYPE>, volume: <REQUEST_VOLUME>}
    flavor: <CLOUD_VENDOR_NODE_FLAVOR>
    fqdn: <NODE_FQDN>
    role: <NODE_ROLE>
  <NODE_NAME>:
  ...
Variable Description Allowed values
NODE_NAME Node name Example: master01
DEVICE_NAME_IN_OS Device name Example: vda,vdb
CREATE_FS_ON_DEV Wether to create FS on device or not true,false
MOUNT_POINT Where to mount the device at OS-level Example: /data/device1
REQUEST_VOLUME (Optional) Wether to create volume for the node in Terraform true,false (Default: false)
SIZE_IN_GB (Optional) Volume size in GB, used by Terraform when requesting new volume 50, 250
DEV_TYPE (Optional) Volume type, used by Terraform when requesting new volume Example: ssd,hdd
CLOUD_VENDOR_NODE_FLAVOR (Optional) Used by Terraform to launch node in cloud vendor Example: m4.xlarge (for AWS)
NODE_FQDN Node's FQDN, used by ansible to auto-generate /etc/hosts file Example: master01.mycluster.int
NODE_ROLE Node's role in the cluster service,master,worker,edge

How to run

cdh-ansible requires Ansible v2.0.2+ to run.

$ ansible-playbook run-setup.yml -e env=development

For production environments...

$ ansible-playbook -vvvv run-setup.yml -e env=production

(Optional) If you have configured Terraform for creating infrastructure:

$ ansible-playbook -vvvv run-create-infrastructure.yml -e env=production

Todos

  • Simplify configuration

License

MIT

cdh-ansible's People

Contributors

arturobayo avatar

Watchers

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