The purpose of this project is to create an automated provisioning system for hadoop with vagrant.
- Download and install git client: http://git-scm.com/
- Download and install VirtualBox: https://www.virtualbox.org/wiki/Downloads
- Download the VirtualBox CDH 4 image: https://ccp.cloudera.com/display/SUPPORT/Cloudera%27s+Hadoop+Demo+VM+for+CDH4 or http://192.168.1.10/cloudera-demo-vm-cdh4.1.1-virtualbox.tar.gz
- Start VirtualBox Manager
- Select: Machines->New... item under the menu
- Go through the wizard: name: <some_name> type: linux version: 64-bit memory size: 1.0 to 2.0 GB hard drive: <select the downloaded .vmdk file>
- Power on the newly created
- Download and install VirtualBox: https://www.virtualbox.org/wiki/Downloads
- Within VirtualBox Manager
VirtualBox
, define a HOST-ONLY network:vboxnet0
- Download and install Vagrant: http://vagrantup.com/
- Download and install git client: http://git-scm.com/
- Clone the git repo: https://github.com/jeffreylutz/hadoop
- Chdir into the hadoop directory of the local filesystem.
- Download virtualbox (hadoop.box) image: https://docs.google.com/open?id=0BxqNuLQvELJ-dDZzbDlBeEJlS0k
- Run
vagrant box add 'hadoop.box' 'hadoop'
- Run
vagrant up
--> You should have four VMs running in VirtualBox - Now, let's install Cloudera Manager v4.
vagrant ssh master
- Run the installer:
sudo /vagrant/cloudera-manager-installer.bin
- When asked for nodes/search for nodes, enter:
192.168.56.[10-13]
The installer should find four nodes to install.
You should now have a complete Hadoop cluster setup and running. You can run the sample applications or your own by vagrant ssh master
and running hadoop <cmd> ...
More Hadoop information can be found here: https://ccp.cloudera.com/display/DOC/Hadoop+Tutorial
Let me know if there are any issues/problems by creating an issue at http://github.com/jeffreylutz/hadoop