Hello,
I am currently trying to connect two nodes to make a cluster
Here is the configuration for node1
cluster.name: underpass
node.name: node-01
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: <ip host>
http.port: 9200
discovery.seed_hosts: ["<hostanme local>", "<hostanme node2>"]
xpack.security.enabled: true
xpack.security.enrollment.enabled: true
xpack.security.http.ssl:
enabled: true
key: /etc/elasticsearch/certs/nd /privkey.pem
certificate: /etc/elasticsearch/certs/nd/fullchain.pem
xpack.security.transport.ssl:
enabled: true
verification_mode: certificate
key: /etc/elasticsearch/certs/nd/privkey.pem
certificate: /etc/elasticsearch/certs/nd/fullchain.pem
cluster.initial_master_nodes: ["node-01","node-02"]
Here is the configuration for node2
cluster.name: underpass
node.name: node-02
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: <ip host>
http.port: 9200
discovery.seed_hosts: ["<hostanme local>", "<hostanme node2>"]
xpack.security.enabled: true
xpack.security.enrollment.enabled: true
xpack.security.http.ssl:
enabled: true
key: /etc/elasticsearch/certs/nd /privkey.pem
certificate: /etc/elasticsearch/certs/nd/fullchain.pem
xpack.security.transport.ssl:
enabled: true
verification_mode: certificate
key: /etc/elasticsearch/certs/nd/privkey.pem
certificate: /etc/elasticsearch/certs/nd/fullchain.pem
cluster.initial_master_nodes: ["node-01","node-02"]
So I have both nodes communicating, the problem is that I have the kibana_system password so for that I use the command:
/usr/share/elasticsearch/bin/elasticsearch-reset-password --username kibana_system --url https://localhost.fr:9200/
or
/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token --scope kibana --url https://localhost.fr:9200/
But I have this error
ERROR: Failed to determine the health of the cluster.