본문 바로가기
빅데이터/elasticsearch

[ES] ES 설치 중 cluster_uuid가 _na_로 나타날 때

by hs_seo 2021. 6. 29.

엘라스틱서치를 구성하고 실행한 후, 클러스터 정보를 확인할 때 cluster_uuid가 _na_로 표현되는 경우가 있습니다.

 

{
  "name" : "es-cluster",
  "cluster_name" : "es",
  "cluster_uuid" : "_na_",
  "version" : {
    "number" : "7.11.1",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "ff17057114c2199c9c1bbecc727003a907c0db7a",
    "build_date" : "2021-02-15T13:44:09.394032Z",
    "build_snapshot" : false,
    "lucene_version" : "8.7.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

 

먼저 마스터 노드설정의 node.master, node.data 설정을 확인하여 마스터와 데이터 노드 설정이 정확한지 확인합니다. 마스터 노드가 존재하지 않으면 클러스터 uuid가 설정되지 않습니다.

 

이 경우 ${ELASTCI_SEARCH_HOME}/conf/elasticsearch.yml 에서 discovery.seed_hosts, cluster.initial_master_nodes를 설정해야 합니다. 주의할 점은 호스트명으로 설정해도 _na_로 나타나는 경우 아이피를 이용하면 됩니다.

 

# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: [ "192.168.0.1:9300", "192.168.0.2:9300", "192.168.0.3:9300"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: [ "192.168.0.1:9300", "192.168.0.2:9300", "192.168.0.3:9300"]
반응형

'빅데이터 > elasticsearch' 카테고리의 다른 글

[ES] 엘라스틱 서치  (0) 2019.07.22