Cluster found only one node

Hi,
Where is my bad?
I try to configure a cluster of 2 nodes on my computer.
I have used 7.5.0 version
Below my config files : elasticsearch.yml

I have tried discovery.seed_hosts and discovery.zen.ping.unicast.hosts

first :

cluster.name: ducat-assignment
node.name: node-1
network.host: localhost
http.port: 9200
transport.tcp.port: 9300
#discovery.seed_hosts: ["localhost:9302"]
discovery.zen.ping.unicast.hosts: ["localhost:9302"]
cluster.initial_master_nodes: ["node-1", "node-2"]

second:

cluster.name: ducat-assignment
node.name: node-2
network.host: localhost
http.port: 9202
transport.tcp.port: 9302
discovery.zen.ping.unicast.hosts: ["localhost:9300"]
#discovery.seed_hosts: ["localhost:9300"]
cluster.initial_master_nodes: ["node-1", "node-2"]

my check:

C:\Users\pc>curl -XGET http://localhost:9200/_cluster/health?pretty
{
"cluster_name" : "ducat-assignment",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 5,
"active_shards" : 5,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 5,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 50.0
}

Thanks and regards

I think the first time you ran these nodes you had not configured them like this, and therefore the solution is to wipe their data paths and start again. There's more detail in the docs.

thanks for your reply.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.