I am trying to install a 2 node Elasticsearch cluster , i installed and my Elasticsearch that node is running fine and while im trying to connect the next node to the using enrollment token im getting this borting enrolling to cluster. Could not communicate with the node on any of the addresses from the enrollment token. All of [10.20.1.36:9200] were attempted., with exit code 69 error
this my configuration of node 1
root@ip-10-20-1-36:/home/ubuntu# cat /etc/elasticsearch/elasticsearch.yml
cluster.name: lg-es
node.name: es-node01
node.roles: [ master, data ]
path.data: /ebs/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: 10.20.1.36
http.port: 9200
xpack.security.enabled: true
xpack.security.enrollment.enabled: true
xpack.security.http.ssl:
enabled: true
keystore.path: certs/http.p12
xpack.security.transport.ssl:
enabled: true
verification_mode: certificate
keystore.path: certs/transport.p12
truststore.path: certs/transport.p12
cluster.initial_master_nodes: ["es-node01"]
i have added the basic config in node 2
root@ip-10-20-1-115:/home/ubuntu# grep -Ev '^#|^$' /etc/elasticsearch/elasticsearch.yml
cluster.name: lg-es
node.name: es-node02
path.data: /ebs/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 10.20.1.115
http.port: 9200
i have not started the Elasticsearch , but whenever im trying to connect to the node 1 im getting this error
i have also open the respective port in security group of the server also
I also installed it using DEB package still getting the issue
how to solve this