Elasticsearch start error and solution

Elasticsearch a start error message:

ERROR: [2] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

Solution:

# vim /etc/sysctl.conf

Add the following configuration:

vm.max_map_count=655360

And execute the command:

# sysctl -p

Error message II:

ERROR: [1] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

Solution:

To root

# Ulimit -Hn View hard limit

# vim /etc/security/limits.conf

## At the end, add the following settings

* Soft nofile 655350 
* hard nofile 655350

Exit users log on again, validate the configuration

Re ulimit -Hn view will find hard limit values ​​have changed to 4096 65535

# vim /etc/security/limits.d/90-nproc.conf

Found the following:

soft nproc 1024

change into

soft nproc 2048

Error message three:

Solution:
When opening multiple elasticsearch example, config / elasticsearch.yml configuration file a new variable:

[Elsearch @ Elk_Server elasticsearch] $ vim config / elasticsearch.yml

node.max_local_storage_nodes: 256 

Error message four:

ERROR: [1] bootstrap checks failed
[1]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
[2019-03-01T16:20:49,025][INFO ][o.e.n.Node              ] [node-data1] stopping ...
[2019-03-01T16:20:49,081][INFO ][o.e.n.Node              ] [node-data1] stopped
[2019-03-01T16:20:49,081][INFO ][o.e.n.Node              ] [node-data1] closing ...
[2019-03-01T16:20:49,100][INFO ][o.e.n.Node              ] [node-data1] closed

Disabled: Configuration in elasticsearch.yml in bootstrap.system_call_filter is false, in Memory attention to the following:

bootstrap.memory_lock: false
bootstrap.system_call_filter: false

Guess you like

Origin www.linuxidc.com/Linux/2019-08/159734.htm