...
- Install VirtualBox and Vagrant.
- Start one or more VMs, each representing a node in a cluster.
- Download, install, and deploy the version of Ambari you wish to use.
- 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.
...
- 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.
- Install Vagrant from http://downloads.vagrantup.com.
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
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'
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
...
The
vagrant
command displays Vagrant command usage and
...
common commands, and creates a private key as
~/.vagrant.d/insecure_private_key
.
...
Code Block vagrant
Copy the private key to your home directory (or any convenient directory).
Start Virtual Machines
...
First, change directory to ambari-vagrant:
...