Skip to content

Latest commit

 

History

History
71 lines (53 loc) · 2.56 KB

File metadata and controls

71 lines (53 loc) · 2.56 KB

Cloudera Vagrant Installation

NOTE: Because of the computationally heavy nature of CDH 5.4.0 the virtual cluster consumes approximately 10 GB of RAM. You would need at least 16 GB of RAM on the host in order to effectively use this cluster.*

First VirtualBox or VMWare Player/Fusion has to be installed:

The Vagrant has to be installed:

Install Vagrant host manager plugin (terminal or cmd):

 vagrant plugin install vagrant-hostmanager

NOTE: I would also recommend installing vagrant snapshot tool

 vagrant plugin install vagrant-vbox-snapshot

Once this is done download the vagrant configuration file into the directory in which you want the virtual cluster to be set up.

This will create 4 VMs, one master and 3 slaves. Each running Ubuntu 12.04 64bit. It will install at startup the following important packages:

  • Oracle Java JDK 1.7
  • Cloudera-manager-server
  • Cloudera-manager-demon
  • Cloudera-manager-server-db

Currently the master VM's RAM is set to 4096 MB and the slave memory is set to 2048 RAM. You can edit these values at: v.customize ["modifyvm", :id, "--memory", "4096"].

It is important to mention that the IPs and hostnames are set automatically using the vagrant host manager plugin:

  • master: 10.211.55.100
  • slave1: 10.211.55.101
  • slave2: 10.211.55.102
  • slave3: 10.211.55.103

In the directory containing the Vagrantfile run the command:

 vagrant up

The startup usually takes some time, depending on the host machine. To access the running machines use:

  • vagrant ssh
  • user: vagrant password: vagrant
  • On windows putty is required
  • master ssh port 2200
  • slave1 ssh port 2222
  • slave2 ssh port 2201
  • slave3 ssh port 2202

Once the VMs are up and cloudera manager has started it will be posible to access the Cloudera manager WUI at:

In order to stop the virtual cluster run:

 vagrant suspend

Reactivate the virtual cluster

 vagrant resume