1.不能以root用户运行
org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root
新建用户,非root运气。
2.JDK不能低于1.8
3.
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
vm.max_map_count的含义是一个进程能够拥有的最大虚拟内存大小。
解决方法:
切换到root用户
执行命令:
sysctl -w vm.max_map_count=262144
查看结果:
sysctl -a|grep vm.max_map_count
显示:
vm.max_map_count = 262144
4.
ERROR: [1] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
在 /etc/security/limits.conf中增加以下配置:
root hard nofile 65536
root soft nofile 65536
5.with the same id but is a different node instance]
[2018-04-09T12:58:14,668][INFO ][o.e.d.z.ZenDiscovery ] [node-64] failed to send join request to master [{node-62}{00KoPE9bTpC76lrDdct1VQ}{gtuPXEJeTm2LtDy2pQAyuw}{10.90.1.62}{10.90.1.62:9300}], reason [RemoteTransportException[[node-62][10.90.1.62:9300][internal:discovery/zen/join]]; nested: IllegalArgumentException[can't add node {node-64}{m8Sasne7SCi3Df7eADvrIg}{kwRidq-1QwmBC0zKSS1voA}{10.90.1.64}{10.90.1.64:9300}, found existing node {node-63}{m8Sasne7SCi3Df7eADvrIg}{JzUaHOlbTaWTWWvt5_Jrgw}{10.90.1.63}{10.90.1.63:9300} with the same id but is a different node instance]; ]
删除elasticsearch-6.1.2/data目录下的文件,重新启动。