无法解决这些问题:
[2017-10-16T13:54:23,381][WARN ][o.e.b.BootstrapChecks ] [node-1] max
file descriptors [65000] for elasticsearch process is too low, increase to
at least [65536]
[2017-10-16T13:54:23,382][WARN ][o.e.b.BootstrapChecks ] [node-1] max
number of threads [1024] for user [appadm01] is too low, increase to at
least [2048]
[2017-10-16T13:54:23,382][WARN ][o.e.b.BootstrapChecks ] [node-1] system
call filters failed to install; check the logs and fix your configuration or
disable system call filters at your own risk
我执行了sysctl -w fs.file-max = 65536,但我得到了相同的东西。
试试这个:(从2-3个不同来源获得)
加入$ES_HOME/config/elasticsearch.yml
network.host: 0.0.0.0
http.port: 9200
transport.host: localhost
transport.tcp.port: 9300
如果是本地开发设置,如果可能,也使用更少的内存选项:
在$ES_HOME/config/jvm.options
中添加/修改
# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space
-Xms512m
-Xmx512m
只需将/etc/security/limits.conf内容更新到下面
elasticsearch soft nofile 65536
elasticsearch hard nofile 65536
elasticsearch memlock unlimited
并删除/etc/security/limits.d/nproc.conf的内容
不要忘记重新登录shell以获得限制。
你读过that page了吗?
它说:
在启动Elasticsearch之前以root身份设置ulimit -n 65536,或在/etc/security/limits.conf中将nofile设置为65536。