Installing ElasticSearch

이상민·2021년 4월 24일
0
post-thumbnail

1. Install ElasticSearch & Kibana

1-1. Install ElasticSearch

  • ElasticSearch is a collection of jar files
  • jar : files that aggregate class file, metadata, and resources
  • comes with openJDK, so Java installation isn't required
  • run :
// from elasticsearch unzipped folder
$ bin/elasticsearch
$ curl http://localhost:9200  // default port is 9200
{
  "name" : "fedora",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "CjLIHXMrQ96lgnUHBJU6_w",
  "version" : {
    "number" : "7.12.0",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "78722783c38caa25a70982b5b042074cde5d3b3a",
    "build_date" : "2021-03-18T06:17:15.410153305Z",
    "build_snapshot" : false,
    "lucene_version" : "8.8.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

1-2. Install Kibana

  • similar to elasticsearch

  • to run, elasticsearch should be running first

  • run:

    // from kibana unzipped folder
    $ bin/kibana  // default port is 5601
    // from browser access http://localhost:5601
  • if elasticsearch running on port other than default, specify in /config/kibana.yml


2. ElasticSearch Directory Layout

2-1. bin

binary scripts ex) elasticsearch, elasticsearch-sql-cli

2-2. config

configuration files for elasticsearch

ex) elasticsearch.yml, jvm.options

2-3. jdk

  • files for openjdk provided by ElasticSearch

2-4. lib

  • libraries needed by ElasticSearch

2-5. modules

  • built-in modules for ElasticSearch

  • x-pack modules are located here

2-6. plugins

  • plugins added by user

  • modules vs plugins : modules are build-in whereas plugins are added by users

profile
편하게 읽기 좋은 단위의 포스트를 추구하는 개발자입니다

0개의 댓글