# Concept of Elasticsearch cluster

**URL:** <https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376>\
**Category:** Elasticsearch\
**Created:** [September 27, 2019, 9:56am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376 "2019-09-27T09:56:24Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Dominic\_Page](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dominic_page/32/48318_2.png) [@Dominic\_Page](https://discuss.elastic.co/u/Dominic_Page)\
**Post date:** [October 7, 2019, 3:00pm UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/21 "2019-10-07T15:00:23Z")

</div>

Hi @pyerunka

Do you get the same response if you send:

`curl -X GET abcd.com:9300`

when logged into the Master node?

---

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [October 9, 2019, 5:01am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/22 "2019-10-09T05:01:11Z")

</div>

Hello @Dominic_Page,

No. I got below response:  
curl: (7) Failed to connect to [abcd.com](http://abcd.com) port 9300: Timed out.

Regards,  
Priyanka

---

<div class="post-metadata">

**Author:** ![Dominic\_Page](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dominic_page/32/48318_2.png) [@Dominic\_Page](https://discuss.elastic.co/u/Dominic_Page)\
**Post date:** [October 9, 2019, 7:00am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/23 "2019-10-09T07:00:02Z")

</div>

Hi @pyerunka,

Can you check again that the Elasticsearch process is still running on the Master Node?

---

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [October 9, 2019, 11:31am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/24 "2019-10-09T11:31:50Z")

</div>

Hello @Dominic_Page,

Yes, Elasticsearch process is still running on the Master Node on port 9200.  
It shows me below record:

{  
"name" : "Master-node",  
"cluster\_name" : "Cluster",  
"cluster\_uuid" : "gzXXocd1T7WVqeNeZrwLKw",  
"version" : {  
"number" : "7.2.0",  
"build\_flavor" : "default",  
"build\_type" : "zip",  
"build\_hash" : "508c38a",  
"build\_date" : "2019-06-20T15:54:18.811730Z",  
"build\_snapshot" : false,  
"lucene\_version" : "8.0.0",  
"minimum\_wire\_compatibility\_version" : "6.8.0",  
"minimum\_index\_compatibility\_version" : "6.0.0-beta1"  
},  
"tagline" : "You Know, for Search"  
}

Regards,  
Priyanka Yerunkar.

---

<div class="post-metadata">

**Author:** ![Dominic\_Page](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dominic_page/32/48318_2.png) [@Dominic\_Page](https://discuss.elastic.co/u/Dominic_Page)\
**Post date:** [October 9, 2019, 2:20pm UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/25 "2019-10-09T14:20:03Z")

</div>

Great!

What was the exact request you made to retrieve this JSON?

---

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [October 10, 2019, 3:28am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/26 "2019-10-10T03:28:23Z")

</div>

Hello @Dominic_Page,

I used following command: "curl -X GET [abcd.com:9200](http://abcd.com:9200) "

Regards,  
Priyanka

---

<div class="post-metadata">

**Author:** ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Post date:** [October 10, 2019, 5:31am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/27 "2019-10-10T05:31:56Z")

</div>

@pyerunka,

> [@pyerunka](#):
>
> curl: (7) Failed to connect to [abcd.com](http://abcd.com) port 9300: Timed out.

Seems that you are using some firewall on your machine. So you need open port 9300 on both master and data node.

Your node will communicate over port 9300.

Thanks.

---

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [October 10, 2019, 6:14am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/28 "2019-10-10T06:14:43Z")

</div>

Hello @Tek_Chand,

Thanks for reply!!  
I have raised an request to our network team to open a firewall between two servers on port 9300.

Regards,  
Priyanka

---

<div class="post-metadata">

**Author:** ![Dominic\_Page](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dominic_page/32/48318_2.png) [@Dominic\_Page](https://discuss.elastic.co/u/Dominic_Page)\
**Post date:** [October 10, 2019, 9:32am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/29 "2019-10-10T09:32:45Z")

</div>

Hi @pyerunka

You might also want to check that the hosts are resolving to [abcd.com](http://abcd.com) and [xyz.com](http://xyz.com)

You could also consider temporarily using the IPs for those if that might be the issue

---

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [October 17, 2019, 5:55am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/30 "2019-10-17T05:55:31Z")

</div>

Hello @Dominic_Page,

Earlier i have raised a request to open a firewall between two servers using ports 9300 and 9400.  
Still i am not able to start Es on data node.

I am getting below error:

> [2019-10-17T05:47:04,195][WARN][o.e.c.c.ClusterFormationFailureHelper] [Data-node1] master not discovered yet: have discovered ;  
> discovery will continue using [136.252.129.115:9200] from hosts providers and [{Data-node1}{vMrL87DfRfmZV46pYXb2HA}{K\_MCTNi9RmaA4ugiKPeprQ}{[xyz.com](http://xyz.com)}{136.252.130.86:9200}{ml.machine\_memory=51539005440, xpack.installed=true, ml.max\_open\_jobs=20}] from  
> last-known cluster state; node term 0, last-accepted version 0 in term 0

Can you please guide me on this?

Regards,  
Priyanka

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 17, 2019, 7:44am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/31 "2019-10-17T07:44:31Z")

</div>

Node discovery should use port 9300, not 9200 which based on the error message is configured.

---

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [October 17, 2019, 8:55am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/32 "2019-10-17T08:55:56Z")

</div>

Hello @Christian_Dahlqvist,

Thanks for reply!!!  
Can you please explain this more? how do i check so that it will use port 9300?

Regards,  
Priyanka

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 17, 2019, 8:59am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/33 "2019-10-17T08:59:32Z")

</div>

Please show your elasticsearch.yml file.

---

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [October 17, 2019, 9:01am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/34 "2019-10-17T09:01:42Z")

</div>

Hello @Christian_Dahlqvist,

Please find below Elasticsearch.yml file for master node:

> cluster.name: Cluster  
> node.name: Master-node  
> node.master: true  
> node.data: true  
> network.host: [abcd.com](http://abcd.com/)  
> transport.tcp.port: 9300-9400  
> node.ingest: true  
> discovery.zen.ping.unicast.hosts: [" [abcd.com](http://abcd.com/)","[xyz.com](http://xyz.com/)"]  
> bootstrap.memory\_lock: true  
> http.port: 9200  
> cluster.initial\_master\_nodes: ["abcd"]  
> path.data: /elasticsearch/data/  
> path.logs: /var/log/elasticsearch/  
> path.repo: /elasticsearch/repo/

and also find Elasticsearch.yml file for data node:

> cluster.name: Cluster  
> node.name: Data-node1  
> node.master: false  
> node.data: true  
> node.ingest: false  
> network.host: [xyz.com](http://xyz.com)  
> discovery.zen.ping.unicast.hosts: ["[abcd.com](http://abcd.com)","[xyz.com](http://xyz.com)"]  
> transport.tcp.port: 9300-9400  
> transport.host: [xyz.com](http://xyz.com)  
> path.data: /elasticsearch/data/  
> path.logs: /var/log/elasticsearch/  
> path.repo: /elasticsearch/repo/  
> bootstrap.memory\_lock: true  
> http.port: 9400

Regards,  
Priyanka

---

<div class="post-metadata">

**Author:** ![Dominic\_Page](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dominic_page/32/48318_2.png) [@Dominic\_Page](https://discuss.elastic.co/u/Dominic_Page)\
**Post date:** [October 17, 2019, 10:18am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/35 "2019-10-17T10:18:16Z")

</div>

hi @pyerunka

Try changing

`discovery.zen.ping.unicast.hosts: ["abcd.com","xyz.com"]`

to

`discovery.seed_hosts: ["abcd.com","xyz.com"]`

For both nodes and restarting

---

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [October 18, 2019, 2:48am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/36 "2019-10-18T02:48:23Z")

</div>

Hello @Dominic_Page,

I tried by changing discovery.zen.ping.unicast.hosts to discovery.seed\_hosts.  
Still i am facing a same issue.

Regards,  
Priyanka

---

<div class="post-metadata">

**Author:** ![Dominic\_Page](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dominic_page/32/48318_2.png) [@Dominic\_Page](https://discuss.elastic.co/u/Dominic_Page)\
**Post date:** [October 18, 2019, 8:15am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/37 "2019-10-18T08:15:39Z")

</div>

Hi @pyerunka

I think we need to simplify the configs, so we can concentrate on the main issue, which is connecting your nodes into a single cluster.

Please can you:

1. Stop both nodes
2. On both nodes, delete the entire "./data" folder, so we start up clean
3. Edit your Master node config to just leave the following parameters, please delete the other parameters:

```auto
cluster.name: Cluster
node.name: Master-node
node.master: true
network.host: _global_
cluster.initial_master_nodes: ["Master-node"]

```

1. edit your Data node config to delete all extra configuration parameters and just leave the following:

```auto
cluster.name: Cluster
node.name: Data-node
node.master: false
network.host: _global_
discovery.seed_hosts: ["abcd.com"]

```

1. Start Master-node on server `abcd.com` and wait until the console logging messages show a message regarding

`"Cluster health status"`

1. Make the following request from both servers, either from command line or from a browser

$ curl -X GET [http://abcd.com:9200](http://abcd.com:9200)

You should get some JSON back that looks something like this:

```auto
{
  "name" : "node1",
  "cluster_name" : "my_cluster",
  "cluster_uuid" : "5F6fjOcaRXCRTyNFFKvXXQ",
  "version" : {
    "number" : "7.3.1",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "4749ba6",
    "build_date" : "2019-08-19T20:19:25.651794Z",
    "build_snapshot" : false,
    "lucene_version" : "8.1.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

```

If you _DON'T_ get JSON here, then _stop & post the response here_

If you _DO_ get JSON then proceed to start the Data-node on the other server `xyz.com`

Then please _post the console output from the Data-node here_

Please don't add extra parameters, we need to keep things simple so we can concentrate on the main issue

---

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [October 18, 2019, 11:13am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/38 "2019-10-18T11:13:04Z")

</div>

Hello @Dominic_Page,

> 1. Start Master-node on server `abcd.com` and wait until the console logging messages show a message regarding.

--How do i start master node from data node?

Regards,  
Priyanka

---

<div class="post-metadata">

**Author:** ![Dominic\_Page](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dominic_page/32/48318_2.png) [@Dominic\_Page](https://discuss.elastic.co/u/Dominic_Page)\
**Post date:** [October 18, 2019, 11:16am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/39 "2019-10-18T11:16:46Z")

</div>

Hi @pyerunka from previous comments:

`Yes, I am running on 2 separate hosts. The host name of the server where the master node is running is [abcd.com](http://abcd.com/) Data node is not on the same server. The host name of the server where the data node is running is [xyz.com](http://xyz.com/)`

Is the Master node still installed on [abcd.com](http://abcd.com)?

---

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [October 18, 2019, 11:18am UTC](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376/40 "2019-10-18T11:18:29Z")

</div>

Hello @Dominic_Page,

No master node is not installed on abcd,com.  
My master node is on [xyz.com](http://xyz.com) and data node is on [abcd.com](http://abcd.com).  
You want me to run master node on [xyz.com](http://xyz.com). Am I right?

Regards,  
Priyanka

[Previous page](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376.md?page=1)

[Next page](https://discuss.elastic.co/t/concept-of-elasticsearch-cluster/201376.md?page=3)
