-
Notifications
You must be signed in to change notification settings - Fork 4
Home
This repository contains a simple single-node configuration for Hadoop running with Vagrant. It is intended for use during application development and testing. You will need working installs of VirtualBox and Vagrant.
VirtualBox is free open source virtualization software that allows you to easily create virtual machines. We will be using it to create a VM for our Hadoop installation. Download the package for your operating system from https://www.virtualbox.org/wiki/Downloads. Follow the installation instruction that correspond to your operating system.
Installing Vagrant has instructions for install Vagrant which allows you to easily create virtual machines.
Vagrant Host Manager allows us to customize how to resolve IP addresses for our VMs. Install it using:
$ vagrant plugin install vagrant-hostmanager
Clone this repository and check out one of the branches depending on your needs.
-
SpringOne-2016-Edition
-
SpringOne2GX-2015-Edition
-
Hadoop-2.7.1-JDK8
For the SpringOne-2016-Edition
use the following commands:
git clone https://github.com/trisberg/hadoop-install.git cd hadoop-install git checkout SpringOne-2016-Edition
For the Hadoop-2.7.1-JDK8
use the following commands:
git clone https://github.com/trisberg/hadoop-install.git cd hadoop-install git checkout Hadoop-2.7.1-JDK8
Run the Hadoop VM from the root directory of this repository. Use the following command to start the VM:
$ vagrant up
You might be prompted for your password when the hostmanager plug-in modifies the hosts
file on your system.
If you would rather modify the hosts
file manually change this assignment to false
in the Vagrant
file:
MANAGE_HOST = true
If you want to change the host name modify this line in the Vagrant
file:
HOST_NAME = "borneo"
If you would like to allocate more memory to the VM then change this line in the Vagrant
file:
VM_MEMORY = "2048"