Giter VIP home page Giter VIP logo

elasticsearch-workshop's Introduction

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

elasticsearch-workshop's People

Contributors

acbarbosa avatar felipead avatar gomex avatar

Watchers

 avatar  avatar

Forkers

fn-alves

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.