Vagrant and puppet files for launching a dev Accumulo VM
Setup and running
Vagrant Dev VM
- git submodule add firstname.lastname@example.org:texeltek/ballin-octo-sansa.git
- Copy the Vagrantfile from this project into the root directory of your project
- From the same directory as the Vagrantfile (i.e. the root directory of your project), run "vagrant up"
- If this is a first time run it will take a while as Vagrant does the following
- Downloads a vm from redhat
- provisions the VM via puppet
- Once the VM has been provisioned, log into the box: vagrant ssh
- su to the root user using "su -" with the password "vagrant"
- run "$HADOOP_HOME/bin/start-all.sh"
- Wait about 2 minutes for hadoop to be fully up before doing anything else
- run "ACCUMULO_HOME/bin/accumulo init"
- Set the instance name to "vagrant"
- Set the root password to "root"
- run $ACCUMULO_HOME/bin/start-all.sh"
- Wait about 2 minutes for accumulo to be fully up before doing anything else
- Make sure you can log into the shell
- $ACCUMULO_HOME/bin/accumulo shell -u root -p root
- enter "exit" to leave the shell
- create the gem tables
- run $ACCUMULO_HOME/bin/create_gem_tables.sh"
- when propmted for a password for the created "gem" user, enter "gem"
- go get a "red bull" this may take a while to run
- cd into the /vagrant directory on the vm. This is a shared folder with your project root folder. You can run mvn commands here, including your integration tests which connet to and use GEM
Common Vagrant Commands
- 'vagrant up' - bring up the vm and run puppet
- 'vagrant halt' - stop the vm
- 'vagrant destroy' - delete the vm (this will not delete the downloaded box)
- 'vagrant provision' - run puppet on the vm