elk_stack:elasticsearch_installatie
Table of Contents
elasticsearch_installatie
context
dit document beschrijft de installatie van Elasticsearch
installatie
- voeg ELK stack repository toe
- installeer elasticsearch
- YUM:
sudo yum install elasticsearch
- APT:
sudo apt-get install elasticsearch
- activeer de service @boot:
- YUM:
sudo systemctl daemon-reload sudo systemctl enable elasticsearch.service
- APT:
systemctl daemon-reload systemctl enable elasticsearch.service
- indien /tmp directory mount optie
noexec
heeft, voer onderstaande stappen uit:- open
/etc/sysconfig/elasticsearch
- voeg toe:
# Added since /tmp has noexec permission set and JNA needs exec permissions ES_TMPDIR=/var/lib/elasticsearch/tmp
- maak de vermelde directory aan en stel toegangsrechten in:
mkdir /var/lib/elasticsearch/tmp && chown elasticsearch /var/lib/elasticsearch/tmp
- start de services:
sudo systemctl start elasticsearch.service
testen
- stuur een HTTP-request naar de service:
curl -X GET "localhost:9200/?pretty"
- output:
{ "name" : "kv-tb01", "cluster_name" : "elasticsearch", "cluster_uuid" : "FkLzX9hMQyGq5WKjkoSkMw", "version" : { "number" : "7.5.2", "build_flavor" : "default", "build_type" : "rpm", "build_hash" : "8bec50e1e0ad29dad5653712cf3bb580cd1afcdf", "build_date" : "2020-01-15T12:11:52.313576Z", "build_snapshot" : false, "lucene_version" : "8.3.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }
configuratie
Ga nu verder met de elasticsearch_configuratie
problemen, problemen
logboeken
- open /var/log/elasticsearch/elasticsearch.log
bij opstarten service:
fout: [2020-02-07T14:29:35,151][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [kv-tb01] fatal error in thread [main], exiting
java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
oorzaak: /tmp heeft noexec
mount optie.
meer info
voeg hier linken toe naar verdere uitleg
elk_stack/elasticsearch_installatie.txt · Last modified: 2023/05/24 13:59 by admin