Launch a fully-featured virtual TDP Hadoop cluster with a single command or customize the infrastructure.
- Vagrant >= 2.2.19 (to launch and manage the VMs)
You must choose a provider to launch VMs. By default, Vagrant use Virtualbox.
- VirtualBox >= 6.1.26
This is the default provider, no plugin needed.
- Vagrant libvirt plugin (vagrant-libvirt) >= 0.9.0
Follow documentation to install it https://vagrant-libvirt.github.io/vagrant-libvirt/.
# With default virtualbox provider
vagrant up
# With libvirt provider
vagrant up --provider=libvirt
You can change the default provider with environment variable.
export VAGRANT_DEFAULT_PROVIDER=libvirt
vagrant up
Important: The Vagrantfile create an internal network so you must not run Vagrant in parallel because the internal network can be created multiple times leading to undefined behavior. With the Libvirt provider, VMs are launch in parallel so, if you want speed, use Libvirt provider.
# Connect to edge
vagrant ssh edge-01
vagrant destroy
For virtualbox provider the destroy command does not destroy the internal network.
This network use an interface on the host vboxnet<N>
which need to be delete manually.
# https://www.virtualbox.org/manual/ch06.html#network_hostonly
VBoxManage hostonlyif remove vboxnet0