Skip to content

TOSIT-IO/tdp-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TDP Vagrant

Launch a fully-featured virtual TDP Hadoop cluster with a single command or customize the infrastructure.

Requirements

  • Vagrant >= 2.2.19 (to launch and manage the VMs)

You must choose a provider to launch VMs. By default, Vagrant use Virtualbox.

Virtualbox provider

  • VirtualBox >= 6.1.26

This is the default provider, no plugin needed.

Libvirt provider

  • Vagrant libvirt plugin (vagrant-libvirt) >= 0.9.0

Follow documentation to install it https://vagrant-libvirt.github.io/vagrant-libvirt/.

Launch cluster

# 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 machine

# Connect to edge
vagrant ssh edge-01

Destroy cluster

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

About

TDP Vagrant deployment for dev and test

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •