Using Spatial Data In Elasticsearch

Exercise 1 - Installation

Firstly lets get the initial exercise ready.

$ cd el-spatial-tutorial

OK now we need to create a virtual machine and install Elasticsearch. With vagrant this is easy. The vagrant script provided with this tutorial uses a base box named precise32. Vagrant box is a pre-packaged environment. However the first time you do this Vagrant needs to do two things:

  • pull down a base machine (i.e., vagrant box)
  • provision the base machine with Elasticsearch.

so it takes a little longer. To do these things run:

$ vagrant box add precise32 http://files.vagrantup.com/precise32.box
$ vagrant up

During the installation vagrant provisions the machine with Elasticsearch, Kibana and some useful plugins:

Vagrant also sets up some port forwarding which allows us to access the machine using ssh as well as the Elasticsearch API.

If you want to ssh to the machine you can run:

$ vagrant ssh

Paramedic, Head and BigDesk should be accessible by accessing the following URL's: