Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install VirtualBox and Vagrant.
  2. Start one or more VMs, each representing a node in a cluster.
  3. Download, install, and deploy the version of Ambari you wish to use.
  4. From Ambari, deploy the version of HDP you wish to use. 

Once VirtualBox and Vagrant have been installed, steps 2 through 4 can be done multiple times (to change versions, create a larger cluster, etc.).

Note: these steps have been tested on MacOS 10.9.5.

...

  1. To install VirtualBox, visit https://www.virtualbox.org/wiki/Downloads. Note: as of 4/25/16 there are potential issues running the latest version of VirtualBox with the Ambari Vagrant setup. We recommend installing an older (4.x) version. This Quick Start has been tested on 4.3.34.
  2. Install Vagrant from http://downloads.vagrantup.com.
  3. After you have installed VirtualBox and Vagrant on your computer, clone the “ambari-vagrant” GitHub repo on your machine. repository into a convenient folder on your Mac. This repository contains Vagrant instructions for creating Ambari virtual machines.
    From the command-line:

    Code Block
    git clone https://github.com/u39kun/ambari-vagrant.git
    
  4. Edit your the /etc/hosts file on your computer so that you will be able to resolve hostnames for the VMs:

    Code Block
    sudo -s 'cat ambari-vagrant/append-to-etc-hosts.txt >> /etc/hosts'
    
  5. Copy Use the private key to your home directory (or any convenient directory); you vagrant command to create a private key. You will need the key for Ambari.

    Code Block
    vagrant
    

...

  1. The vagrant command displays Vagrant command usage and

...

  1. common commands, and creates a private key as ~/.vagrant.d/insecure_private_key.

...

  1. Code Block
    vagrant
    

    Copy the private key to your home directory (or any convenient directory).

Start Virtual Machines

...

First, change directory to ambari-vagrant:

...