I have 2 nodes cluster, both are mastered enabled.
node-1
cluster.name: test
node.name: "node-1"
node.master: true
node.data: true
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
http.port: 8200
network.host: ["localhost","ip1"]
transport.tcp.port: 8300
discovery.zen.ping.unicast.hosts: ["ip1","ip2"]
discovery.zen.minimum_master_nodes: 1
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.client_authentication: required
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12
node-1
cluster.name: test
node.name: "node-2"
node.master: true
node.data: true
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
http.port: 8200
network.host: ["localhost","ip2"]
transport.tcp.port: 8300
discovery.zen.ping.unicast.hosts: ["ip1","ip2"]
discovery.zen.minimum_master_nodes: 1
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.client_authentication: required
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12
Everything is working fine and perfectly.
Note : I have created .p12 certificate and pass in node-1 (bin/Elasticsearch-setup-passwords interactive). and shards are available on both nodes
Now I want to remove node-1. So If I stop node 1, node-2 has the following errors.
master_not_discovered_exception
or
cluster_block_exception
or
unable to authenticate issue.
Can anyone pls help? How Can I remove node-1 safely?