Skip to content

fehraraujo/elasticsearch-workshop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elasticsearch Workshop

Environment Setup

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.

Setup Using Vagrant

  • Requirements:

  • 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"
}

Setup Using Docker

  • Requirements:

  • 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:
{
  "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"
}

Manual Setup

  • Requirements:

    • Install curl:
      • If you have Homebrew: brew install curl
      • ...or install Apple Developer Tools
    • Install JDK 7 or 8
  • 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"
}

About

Elasticsearch workshop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 100.0%