A project for practicing using Elasticsearch.
The following are some points about this project:
- The host OS is CoreOS with an IP of 10.0.0.2
- Access Elasticsearch at http://10.0.0.2:9200. It will take a minute or so before its available after starting it.
- It runs an Elasticsearch cluster containing two nodes
- Each node runs inside a Docker container
- The containers use a Docker network to see one another
- Access Kibana at http://10.0.0.2:5601 (this includes "Dev Tools - Console" which is the new Sense)
You will require:
- VirtualBox, downloaded from the VirtualBox website.
- Vagrant, downloaded from the Hashicorp website.
- An SSH client, such as the one that ships with Git for Windows. Be sure to choose the option to include the Unix tools on the Windows command line.
To get started, clone this repository, cd
into it and then issue the following command to create the environment:
~$ vagrant up
To stop the virtual machine:
~$ vagrant halt
To throw it away:
~$ vagrant destroy
You can connect to the virtual machine using SSH:
~$ vagrant ssh
Then you can run Docker commands such as:
~$ sudo docker ps -a
~$ sudo docker logs es1
~$ sudo docker inspect es1
Get node info:
- Figure out how to map a Docker volume to the container's /usr/share/elasticsearch/data directory. Currently, this gives me an AccessDenied exception from Java. See docker-library/docs#370.