This is a hadoop 2.6.0 cluster setup config using vagrant. You can setup your own hadoop cluster.
install vagrant and virtualbox
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
(optional) you can modify config.vm.box, just need ubuntu 64-bit
(optional) ATTENTION: modify the vm memory according to your PC
# just a example
config.vm.define :example do |node|
node.vm.hostname = "example"
node.vm.provider :virtualbox do |v|
v.cpus = 1
v.memory = 2048 # modify here
end
end
install vagrant-hostmanager
$ vagrant plugin install vagrant-hostmanager
start machines
$ vagant up
start cluster
$ control start
Attention: control is a alias for control.sh.
Enjoy it!