The first step is to download the repository to your machine. If you have git:
git clone https://github.com/felipead/elasticsearch-workshop
cd elasticsearch-workshop
We have provided Vagrant and Docker environments, as well as manual setup instructions.
-
Requirements:
- Install Vagrant
- Install VirtualBox
-
Initialize Vagrant (this will take a while):
vagrant up
-
Verify everything is working:
vagrant ssh
- You might need to wait a few seconds for Elasticsearch to finish booting
curl http://localhost:9200
- It should print something like:
{
"name" : "Starbolt",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "2.1.0",
"build_hash" : "72cd1f1a3eee09505e036106146dc1949dc5dc87",
"build_timestamp" : "2015-11-18T22:40:03Z",
"build_snapshot" : false,
"lucene_version" : "5.3.1"
},
"tagline" : "You Know, for Search"
}
-
Requirements:
- If you are on Linux:
- Install Docker
- If you are on Windows or Mac:
- Install the Docker Toolbox
- Install VirtualBox
- If you are on Linux:
-
Run your container:
docker run -p 9200:9200 elasticsearch:1.7
-
Verify everything is working:
- If you use Mac or Windows with Toolbox:
curl http://192.168.99.100:9200
- If you use GNU/Linux:
curl http://localhost:9200
- It should print something like:
- If you use Mac or Windows with Toolbox:
{
"name" : "Starbolt",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "2.1.0",
"build_hash" : "72cd1f1a3eee09505e036106146dc1949dc5dc87",
"build_timestamp" : "2015-11-18T22:40:03Z",
"build_snapshot" : false,
"lucene_version" : "5.3.1"
},
"tagline" : "You Know, for Search"
}
-
Requirements:
- Install curl:
- If you have Homebrew:
brew install curl
- ...or install Apple Developer Tools
- If you have Homebrew:
- Install JDK 7 or 8
- Install curl:
-
Download Elasticsearch 2.x
-
Unzip it to a folder in your machine (ex:
~/elasticsearch-2.1.0
) -
Start Elasticsearch:
${ELASTICSEARCH_HOME}/bin/elasticsearch
- You might need to wait a few seconds for Elasticsearch to finish booting
-
Verify everything is working:
curl http://localhost:9200
- It should print something like:
{
"name" : "Starbolt",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "2.1.0",
"build_hash" : "72cd1f1a3eee09505e036106146dc1949dc5dc87",
"build_timestamp" : "2015-11-18T22:40:03Z",
"build_snapshot" : false,
"lucene_version" : "5.3.1"
},
"tagline" : "You Know, for Search"
}