Elasticsearch 시작 오류

오류 메시지 1:
ERROR: [2] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

해결 방법:
# vim /etc/sysctl.conf

 :

vm.max_map_count=655360

 :

# sysctl -p

오류 메시지 2:
ERROR: [1] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

해결 방법:
 root 

# ulimit -Hn   

# vim /etc/security/limits.conf 

## 

* soft nofile 655350   
* hard nofile 655350

 , 

  ulimit -Hn     4096 65535

# vim /etc/security/limits.d/90-nproc.conf 

 :

soft nproc 1024

 

soft nproc 2048

오류 정보 3:
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain node locks, tried [[/data/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])?

해결 방법: 여러 개의elasticsearch 실례를 열 때config/elasticsearch.yml 파일에 추가 구성 변수:
[elsearch@Elk_Server elasticsearch]$ vim config/elasticsearch.yml

node.max_local_storage_nodes: 256  

오류 메시지 4:
ERROR: [1] bootstrap checks failed
[1]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
[2019-03-01T16:20:49,025][INFO ][o.e.n.Node               ] [node-data1] stopping ...
[2019-03-01T16:20:49,081][INFO ][o.e.n.Node               ] [node-data1] stopped
[2019-03-01T16:20:49,081][INFO ][o.e.n.Node               ] [node-data1] closing ...
[2019-03-01T16:20:49,100][INFO ][o.e.n.Node               ] [node-data1] closed

해결 방법: Centos6는 SecComp를 지원하지 않으며 ES5.2.0 기본 bootstrap은 지원되지 않습니다.system_call_filter는true
비활성화:elasticsearch.yml에서bootstrap을 설정합니다.system_call_filter는 false입니다. 메모리 아래에 주의하십시오.
bootstrap.memory_lock: false 
bootstrap.system_call_filter: false

좋은 웹페이지 즐겨찾기