1./opt/elasticsearch/config/elasticsearch.yml文件:
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
注销X-Pack
注意:ambari中的该文件,需要提前修改好!
2./etc/sysctl.conf
vm.max_map_count = 262144
修改后执行sysctl -p
3. /etc/security/limits.conf
elasticsearch - nofile 65536
elasticsearch - nproc 4096
elasticsearch - memlock unlimited
4./etc/security/limits.d/90-nproc.conf
* soft nofile 65536
elasticsearch hard nofile 131072
* soft nproc 4096
* hard nproc 4096