# Elasticsearch Cluster - no node visible

**URL:** <https://discuss.elastic.co/t/elasticsearch-cluster-no-node-visible/300338>\
**Category:** Elasticsearch\
**Created:** [March 22, 2022, 1:05pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-no-node-visible/300338 "2022-03-22T13:05:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zicherka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zicherka/32/103358_2.png) [@zicherka](https://discuss.elastic.co/u/zicherka)\
**Post date:** [March 22, 2022, 1:05pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-no-node-visible/300338/1 "2022-03-22T13:05:33Z")

</div>

Hi  
System: CentOS 8 Stream  
Elasticsearch ver: 8.1.0  
Nodes:

```auto
node1.test.com 192.168.100.101
node2.test.com 192.168.100.102
node3.test.com 192.168.100.103

```

All nodes can be pinged by IP and FQDN, Firewalld has open ports 9200 / tcp, 9300 / tcp on all hosts.  
Config:

> /etc/elasticsearch/elasticsearch.yml

```auto
cluster.name: elastic-cluster
node.name: ${HOSTNAME}
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 0.0.0.0
http.port: 9200
discovery.seed_hosts: ["node1.test.com", "node2.test.com", "node3.test.com"]
cluster.initial_master_nodes: ["node1.test.com", "node2.test.com", "node3.test.com"]

```

After configuring the elasticsearch.yml file (the same on each host), the following was done:  
`# systemctl enable --now elasticsearch`

Command:  
`# curl http://192.168.100.101:9200/_cat/nodes?v`  
returns:

> ip heap.percent ram.percent cpu load\_1m load\_5m load\_15m node.role master name  
> 192.168.100.101 15 95 54 0.01 0.59 1.20 cdfhilmrstw \* [node1.test.com](http://node1.test.com)

Does not show the remaining 2 nodes

Command:  
` # curl http://192.168.100.101:9200/_cluster/health?pretty`  
Returns:

> {  
> "cluster\_name": "elastic-cluster",  
> "status": "green",  
> "timed\_out": false,  
> "number\_of\_nodes": 1, (and should be 3)  
> "number\_of\_data\_nodes": 1, (and should be 3)  
> "active\_primary\_shards": 3,  
> "active\_shards": 3,  
> "relocating\_shards": 0,  
> "initializing\_shards": 0,  
> "unassigned\_shards": 0,  
> "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": 100.0  
> }

Can you ask for help in solving the problem? The system (on all nodes) was installed from scratch in one of the attempts, and only elasticsearch was installed on it.

---

<div class="post-metadata">

**Author:** ![zicherka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zicherka/32/103358_2.png) [@zicherka](https://discuss.elastic.co/u/zicherka)\
**Post date:** [March 24, 2022, 8:27pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-no-node-visible/300338/2 "2022-03-24T20:27:58Z")

</div>

The solution is very easy!  
Turn off all nodes that are part of the cluster.  
Then delete all data (files, directories) from the location specified in [Elasticsearch.yml] as [path.data =].  
In my case, these are respectively:  
[/etc/Elasticsearch/Elasticsearch.yml]  
path.data = / var / lib / Elasticsearch  
Then we restart individual cluster nodes.  
In my case, that solved the problem.  
Greetings 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 21, 2022, 8:28pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-no-node-visible/300338/3 "2022-04-21T20:28:35Z")

</div>

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