No description, website, or topics provided.
Shell Puppet Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
puppet
.gitignore
README.md
Vagrantfile

README.md

ballin-octo-sansa

Vagrant and puppet files for launching a dev Accumulo VM

Setup and running

Vagrant Dev VM

  1. Install Vagrant
  2. Install Virtual Box
  3. Add this project as a submodule to your project
  1. Copy the Vagrantfile from this project into the root directory of your project
  2. 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
  1. Once the VM has been provisioned, log into the box: vagrant ssh
  2. su to the root user using "su -" with the password "vagrant"
  3. run "$HADOOP_HOME/bin/start-all.sh"
  4. Wait about 2 minutes for hadoop to be fully up before doing anything else
  5. run "ACCUMULO_HOME/bin/accumulo init"
  • Set the instance name to "vagrant"
  • Set the root password to "root"
  1. run $ACCUMULO_HOME/bin/start-all.sh"
  2. Wait about 2 minutes for accumulo to be fully up before doing anything else
  3. Make sure you can log into the shell
  • $ACCUMULO_HOME/bin/accumulo shell -u root -p root
  • enter "exit" to leave the shell
  1. 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
  1. 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