Elasticsearch master(8.0.0) nodes can't form into a cluster

I configured three nodes with elasticsearch master branch(8.0.0),but they can't form into a cluster. It seems they don't attempt to connection each other.
Here is my configuration:
node1:

cluster.name: es-cluster
node.name: 127.0.0.1.0
node.master: true
node.data: true
path.data: /data0/es0/data
path.logs: /data0/es0/logs
network.host: 127.0.0.1
http.port: 9200
http.cors.enabled: true
transport.type: netty4
transport.port: 9300
bootstrap.memory_lock: true
discovery.seed_hosts:
  - 127.0.0.1:9300
  - 127.0.0.1:9301
  - 127.0.0.1:9302
cluster.initial_master_nodes:
  - 127.0.0.1.0
  - 127.0.0.1.1
  - 127.0.0.1.2

node2:

cluster.name: es-cluster
node.name: 127.0.0.1.1
node.master: true
node.data: true
path.data: /data0/es1/data
path.logs: /data0/es1/logs
network.host: 127.0.0.1
http.port: 9201
http.cors.enabled: true
transport.type: netty4
transport.port: 9301
bootstrap.memory_lock: true
discovery.seed_hosts:
  - 127.0.0.1:9300
  - 127.0.0.1:9301
  - 127.0.0.1:9302
cluster.initial_master_nodes:
  - 127.0.0.1.0
  - 127.0.0.1.1
  - 127.0.0.1.2

node3:

cluster.name: es-cluster
node.name: 127.0.0.1.2
node.master: true
node.data: true
path.data: /data0/es2/data
path.logs: /data0/es2/logs
network.host: 127.0.0.1
http.port: 9202
http.cors.enabled: true
transport.type: netty4
transport.port: 9302
bootstrap.memory_lock: true
discovery.seed_hosts:
  - 127.0.0.1:9300
  - 127.0.0.1:9301
  - 127.0.0.1:9302
cluster.initial_master_nodes:
  - 127.0.0.1.0
  - 127.0.0.1.1
  - 127.0.0.1.2

Here is node1's response, it is same to other nodes :
curl -XGET localhost:9200

{
  "name" : "127.0.0.1.0",
  "cluster_name" : "es-cluster",
  "cluster_uuid" : "_na_",
  "version" : {
    "number" : "8.0.0",
    "build_flavor" : "unknown",
    "build_type" : "unknown",
    "build_hash" : "unknown",
    "build_date" : "unknown",
    "build_snapshot" : true,
    "lucene_version" : "8.6.0",
    "minimum_wire_compatibility_version" : "7.10.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "You Know, for Search"
}

curl -XGET localhost:9200/_cat/health

{"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}

Why are you running master?
What do your logs show?

@warkolm It was a SocketPermission problem, which result in each node connect failed to others.
I configed log in a wrong way, and the connect_exception log is in a debug level, so I had not found the connect_exception log.

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