-
Notifications
You must be signed in to change notification settings - Fork 0
Elasticsearch_Installation
Willy Wong edited this page May 30, 2018
·
4 revisions
- 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
- 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"
}
}'
- Download https://cildata.crbs.ucsd.edu/cil_elasticsearch_backup/cil_es_backup.zip
- Unzip and untar files to C:/elasticsearch/elasticsearch_backup/cil_es_backup
- Test the snapshot by checking http://localhost:9200/_snapshot/cil_es_backup/_all and you should see "cil_v1_0" snapshot
- Restore snapshot:
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