This vagrant file will deploy a cluster with an ambari-server and up to 9 nodes with the ambari-agent service installed
By default, the machines will have 2Gb of Ram.
In order to change the number of ambari-agent nodes, you will need to edit the VagrantFile and change the parameter named cluster_size
cluster_size = 1
###The default ips and fqdn for the nodes are:
- Ambari-Server:
- ambarimaster.cluster
- 192.168.0.10
- Slave nodes:
- node-x.cluster
- 192.168.0.1x Where "x" is the node number
- Download and install VirtualBox
- Download and install Vagrant
- Open a console and navigate to the folder where the Vagrantfile file is located
- Run the command
vagrant up
to launch the machines creation and provision. - Once the process finishes, the Ambari UI should be accessible
- The default credentials for the Ambari UI are admin/admin
- It's possible to suspend and resume the cluster machines using the commands
vagrant suspend
andvagrant resume
- To ssh into the nodes:
ssh node-x.cluster
- To destroy the cluster use the command
vagrant destroy
With ambari, there are two ways to deploy a cluster.
- The first and simplest way to do it is using the assisted wizards of the ambari web.
- The second way to deploy is through Ambari Blueprints. There is a simple example in the
ambari_blueprint_provision
folder.