Elasticsearch: Difference between revisions
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
Smoke test: | Smoke test: | ||
<syntaxhighlight lang='bash'> | |||
curl http://localhost:9200/ | |||
{ | |||
"name" : "pkb.local", | |||
"cluster_name" : "elasticsearch", | |||
"cluster_uuid" : "37KaoJd3Q6qyBJSU0-7eQw", | |||
"version" : { | |||
"number" : "7.15.2", | |||
"build_flavor" : "default", | |||
"build_type" : "rpm", | |||
"build_hash" : "93d5a7f6192e8a1a12e154a2b81bf6fa7309da0c", | |||
"build_date" : "2021-11-04T14:04:42.515624022Z", | |||
"build_snapshot" : false, | |||
"lucene_version" : "8.9.0", | |||
"minimum_wire_compatibility_version" : "6.8.0", | |||
"minimum_index_compatibility_version" : "6.0.0-beta1" | |||
}, | |||
"tagline" : "You Know, for Search" | |||
} | |||
</syntaxhighlight> | |||
=Configuration= | =Configuration= |
Revision as of 23:55, 20 November 2021
Internal
Overview
Installation
- Download the latest RPM from https://www.elastic.co/guide/en/elasticsearch/reference/current/install-elasticsearch.html → Install Electric Search with RPM → https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.15.2-x86_64.rpm
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.15.2-x86_64.rpm.sha512
shasum -a 512 -c elasticsearch-7.15.2-x86_64.rpm.sha512
sudo rpm --install elasticsearch-7.15.2-x86_64.rpm
- Enable start at boot. As root:
systemctl daemon-reload
systemctl enable elasticsearch.service
Smoke test:
curl http://localhost:9200/
{
"name" : "pkb.local",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "37KaoJd3Q6qyBJSU0-7eQw",
"version" : {
"number" : "7.15.2",
"build_flavor" : "default",
"build_type" : "rpm",
"build_hash" : "93d5a7f6192e8a1a12e154a2b81bf6fa7309da0c",
"build_date" : "2021-11-04T14:04:42.515624022Z",
"build_snapshot" : false,
"lucene_version" : "8.9.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
Configuration
/etc/elasticsearch/elasticsearch.yml
Operations
Start/Stop
systemctl stop elasticsearch.service
systemctl start elasticsearch.service
Logs
/var/log/elasticsearch/