Skip to content

Elasticsearch_Installation

Willy Wong edited this page May 30, 2018 · 4 revisions

Elasticsearch Installation

  • Download https://www.elastic.co/downloads/past-releases/elasticsearch-5-6-9
  • Install Java JDK 8+ and make sure that %JAVA_HOME% is set in your path.
  • Unzip elasticsearch-5.6.9.zip to your preferred location. In this tutorial, we unzip it to C:\elasticsearch on a windows machine.
  • Edit elasticsearch.yml and set path.repo to your snapshot repo. For example,
path.repo: C:/elasticsearch/elasticsearch_backup
  • Start up the Elasticsearch server (C:\elasticsearch\elasticsearch-5.6.9\bin\elasticsearch)
  • Testing your Elasticsearch server by checking http://localhost:9200

Loading the CIL data

  • Create a snapshot location in Elasticserach:
curl -XPUT http://localhost:9200/_snapshot/cil_es_backup -d '
{
   "type": "fs",
   "settings": {
       "compress" : true,
       "location": "C:/elasticsearch/elasticsearch_backup/cil_es_backup"
   }
}'
curl -XPOST http://localhost:9200/_snapshot/cil_es_backup/cil_v1_0/_restore?wait_for_completion=true
  • Test the data URL:
http://localhost:9200/ccdbv8/data/CIL_2
Clone this wiki locally