forked from vangj/vagrant-hadoop-2.3.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
24 lines (23 loc) · 987 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Vagrant.require_version ">= 1.4.3"
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define :master do |master|
master.vm.box = "centos65"
master.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.1/centos65-x86_64-20131205.box"
master.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "8192"
end
master.vm.provider "virtualbox" do |v|
v.name = "hadoop-yarn"
v.customize ["modifyvm", :id, "--memory", "8192"]
end
master.vm.network :private_network, ip: "10.211.55.101"
master.vm.hostname = "hadoop-yarn"
master.vm.provision :shell, :path=> 'setup.sh'
master.vm.network "forwarded_port", guest: 50070, host: 50070
master.vm.network "forwarded_port", guest: 50075, host: 50075
master.vm.network "forwarded_port", guest: 8088, host: 8088
master.vm.network "forwarded_port", guest: 8042, host: 8042
master.vm.network "forwarded_port", guest: 19888, host: 19888
end
end