CentOS6安装单机版elasticsearch和集群版的过程中遇到的错误

在修改elasticSearch的配置文件后,启动es,报错

1、错误一

max virtual memory areas vm.max_map_count [65530] likely too low,
 increase to at least [262144]

max file descriptors [4096] for elasticsearch process likely too low, 
increase to at least [65536]

解决

(1)、sudo vi /etc/security/limits.conf
在后面追加下面两行 * 表示所有用户,可打开的文件数目最大是65536
CentOS6安装单机版elasticsearch和集群版的过程中遇到的错误_第1张图片
(2)sudo vi /etc/sysctl.conf , 添加一行 vm.max_map_count=262144

2、错误2 max number of threads [1024] for user [bigdata] is too low, increase to at least [2048] 修改 sudo vi
/etc/security/limits.d/90-nproc.conf 修改如下内容:
* soft nproc 1024
修改为
* soft nproc 2048

3、错误3 system call filters failed to install; check the logs and fix your configuration or disable system call
filters at your own risk
Centos6不支持SecComp,而ES5.2.0默认bootstrap.system_call_filter为true
禁用:在elasticsearch.yml中配置bootstrap.system_call_filter为false,注意要在Memory下面:
bootstrap.memory_lock: false bootstrap.system_call_filter: false
CentOS6安装单机版elasticsearch和集群版的过程中遇到的错误_第2张图片

查看集群状态时 报错: http://192.168.136.150:9200/_cluster/health?pretty type
“master_not_discovered_exception” {“error”: {“root_cause”:[{
“type”:“master_not_discovered_exception”, “reason”:null}],
“type”:“master_not_discovered_exception”, “reason”:null},
“status”:503}

   	查看日志,没有master,原因是,把elasticsearch复制到其他节点时 ,把elasticsearch下的data也拷贝过去了,把data目录删了,再从新启动就解决了 	[o.e.d.z.ZenDiscovery

] [bigdata02] failed to send join request to master
[{bigdata03}{al80t7luTW-A4sgG6AQWFQ}{5ZwkRS46TzSFAdtuuZfqFA}{192.168.136.152}{192.168.136.152:9300}],
reason
[RemoteTransportException[[bigdata03][192.168.136.152:9300][internal:discovery/zen/join]];
nested: NotMasterException[Node
[{bigdata03}{al80t7luTW-A4sgG6AQWFQ}{5ZwkRS46TzSFAdtuuZfqFA}{192.168.136.152}{192.168.136.152:9300}]
not master for join request]; ], tried [3]

你可能感兴趣的:(CentOS6安装单机版elasticsearch和集群版的过程中遇到的错误)