Installation errors often occur elasticsearch

1.3.1 Error 1: The kernel is too low

We are using centos6, its linux kernel version 2.6. The Elasticsearch plug-in requires at least version 3.5 or later. But never mind, we disable the plug-ins.
Elasticsearch.yml modify the file, add the following configuration at the bottom:

bootstrap.system_call_filter: false
then restart
1.3.2 Error 2: insufficient file permissions
to start again, but wrong:


[1]: max file descriptors [ 4096] for elasticsearch process likely too low, increase to at least [65536]
We use the leyou user, not root, it is insufficient file permissions.
First, log in as root user.
Then modify the configuration file:

vim /etc/security/limits.conf
add the following:

Soft nofile 65536 * * Hard nofile 131072 * Soft nproc 4096 * 4096 Hard nproc 1.3.3 Error 3: Thread count is not just an error, there is a line:







[1]: max number of threads [1024] for user [leyou] is too low, increase to at least [4096]
This is the number of threads is not enough.
Continue to modify the configuration:

vim /etc/security/limits.d/90-nproc.conf
modify the following:

* Soft nproc 1024
read:

Soft nproc 4096 *
. 1.3.4 Error 4: The process virtual memory

[3]: max Virtual Memory Areas vm.max_map_count [65530] LIKELY TOO Low, Increase to AT Least [262144]
vm.max_map_count: a process of quantitative restrictions can have VMA (virtual memory area) and continue to modify the configuration file:

vim /etc/sysctl.conf
Add the following content:

vm.max_map_count = 655360
and then execute the command:
sysctl -p

错误5:存在
Caused by: java.lang.IllegalStateException: failed to obtain node locks, tried [[/home/es/app/elasticsearch/data/elasticsearch]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
已经启动

Guess you like

Origin www.cnblogs.com/mufeng07/p/12206117.html
Recommended