apologies there are so many log files that I cannot know which file I should show to you
but I have config file of first envoking node (suppose it has private IP address 111.11.1.111)
cluster.name: dev-cluster
node.name: ${HOSTNAME}
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: 0.0.0.0
http.port: 20222
discovery.seed_hosts: 111.11.1.111
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: ["ip-111-11-1-2111.region.compute.internal"]
and this is the second one
cluster.name: dev-cluster
node.name: ${HOSTNAME}
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: 0.0.0.0
http.port: 20222
discovery.seed_hosts: 111.11.1.111
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: ["ip-111-11-1-2111.region.compute.internal"]
Is there any problem on these configs?
Also I would be really appreciated if you answer this question, too.
-
Suppose there are two cluster and each cluster has only one node they’ve already been assigned cluster uuid
With those config files, if there is no problem in config, How can I re-form cluster from two-single-node clusters to one cluster with two node? I shut down es, triedsudo rm -rf /var/lib/elasticsearch/nodes
and restart es with token but they said I cannot start already launched node with token
In this case should I remove elasticsearch on my ec2 and install again?