项目作者: dllen

项目描述 :
高级语言: Shell
项目地址: git://github.com/dllen/vagrant-hadoop-cluster.git
创建时间: 2017-03-05T16:47:40Z
项目社区:https://github.com/dllen/vagrant-hadoop-cluster

开源协议:

下载


vagrant-hadoop-cluster

This is a hadoop 2.6.0 cluster setup config using vagrant. You can setup your own hadoop cluster.

Usage

prepare

  1. install vagrant and virtualbox

  2. download hadoop-2.6.0 binary relase and jdk 64-bit 1.7 or later, and extract in the root directory, then modify the environment JAVA_HOME and HADOOP_HOME in env.sh according to the java and hadoop real path

  3. (optional) you can modify config.vm.box, just need ubuntu 64-bit

  4. (optional) ATTENTION: modify the vm memory according to your PC

  1. # just a example
  2. config.vm.define :example do |node|
  3. node.vm.hostname = "example"
  4. node.vm.provider :virtualbox do |v|
  5. v.cpus = 1
  6. v.memory = 2048 # modify here
  7. end
  8. end

start

install vagrant-hostmanager

  1. $ vagrant plugin install vagrant-hostmanager

start machines

  1. $ vagant up

start cluster

  1. $ control start

Attention: control is a alias for control.sh.

Enjoy it!