Skip to content

Latest commit

 

History

History
72 lines (60 loc) · 1.52 KB

README.md

File metadata and controls

72 lines (60 loc) · 1.52 KB

vagrant-elasticsearch-simple

A Vagrant box with Elasticsearch for playing around with. Different bootstrap files are provided to use in the Vagrantfile.

Prerequisites

These are things you need to install once on your machine to use this box.

$ sudo apt-get install virtualbox
$ sudo apt-get install vagrant
  • Vagrant Virtualbox Guest Plugin
$ vagrant plugin install vagrant-vbguest

Software installed in the Box

  • OpenJDK JRE 7
  • Elasticsearch 1.3.7 or 2.1.1 or 2.3.2
  • "head" plugin
  • "mapper-attachments" plugin (not for 1.3.7; seems not to work for 2.1.1 either...)

Starting the Box (with Provisioning on first start)

vagrant up

Stopping the Box

vagrant halt

Suspend/resume the Box

vagrant suspend/resume

Restart the Box (e.g. after change of Vagrantfile)

vagrant reload

Destroy/delete the Box

vagrant destroy

Box Status

vagrant status

Access the Box via SSH

vagrant ssh

Access Elasticsearch

The Elasticsearch server-port of the guest is forwarded to the host, so from the host do

curl -XGET -v http://localhost:9200

Also the "head" plugin is installed, so from a browser in the host, just get

http://localhost:9200/_plugin/head

ElasticSearch in Version 1.3

E.g. Spring JPA for ElasticSearch needs ES in version 1.3.7. For this the bootstrap-es137.sh should be used instead!