서버 한대에
두번째 노드를 올리려니 다음과같은 에러가 발생하였다.
[에러] node does not have the data role but has shard data

데이터 노드는 없는데 샤드데이터를 가지고 있어서 발생한다고 한다.
에러 바로 아래에 Use 'elasticsearch-node repurpose' tool to clean up f라고 나오니
elasticsearch 폴더에서 bin 아래에 해당 파일을 실행시켜주면된다.

했는데
또다시 에러가 발생
ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
bootstrap checks faild 에러는 시스템설정검사하다가 에러가 난경우로 여러가지가 있다.
나의경우는 멀티 노드를 돌리는데 메모리 값이 적어서 발생하는 에러
[1]bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
sudo sysctl -w vm.max_map_count=262144
그밖의 에러는 아래 bootstrap 설정 링크나 티스토리 링크를 참조하시면 됩니다.
Reference
메모리 설정
https://stackoverflow.com/questions/42300463/elasticsearch-bootstrap-checks-failing
Elasticsearch - Bootstrap checks failing
I'm trying to use the Flink 5.x Elasticsearch sink connector to insert data to ES 5.2.1 instance hosted on a tiny VM. As this is a tiny VM in development mode, I cant get it to start up to accept
stackoverflow.com
bootstrap설정
https://www.elastic.co/guide/en/elasticsearch/reference/master/bootstrap-checks.html
Bootstrap Checks | Elasticsearch Guide [master] | Elastic
Collectively, we have a lot of experience with users suffering unexpected issues because they have not configured important settings. In previous versions of Elasticsearch, misconfiguration of some of these settings were logged as warnings. Understandably,
www.elastic.co
Elasticsearch Bootstrap Check 오류로 인한 처리 방법
Elasticsearch Bootstrap Check 설정 Elasticsearch Bootstrap Check 절차에 관련하여 개인적으로 찾아보고 설정해준 내용들 간략하게 정리한 내용 Elasticsearch 실행 시 아래의 오류가 발생 [1] bootstrap chec..
antdev.tistory.com
'ElasticSearch' 카테고리의 다른 글
[ElasticSearch]클러스터에 노드 2개 붙이기... (0) | 2022.09.27 |
---|---|
ElasticSearch에러: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] (0) | 2022.09.27 |
Elasticsearch 와 metircbeat 연결(연동) 안될때 (1) | 2022.09.23 |
elasticsearch 자바 환경변수 설정 (0) | 2022.09.20 |
ElasticSearch primary shard 할당 에러 (0) | 2022.09.06 |
댓글