# Trying to configure Master and Data nodes on the same system

**URL:** <https://discuss.elastic.co/t/trying-to-configure-master-and-data-nodes-on-the-same-system/198522>\
**Category:** Elasticsearch\
**Created:** [September 7, 2019, 8:57pm UTC](https://discuss.elastic.co/t/trying-to-configure-master-and-data-nodes-on-the-same-system/198522 "2019-09-07T20:57:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![revglen](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@revglen](https://discuss.elastic.co/u/revglen)\
**Post date:** [September 7, 2019, 8:57pm UTC](https://discuss.elastic.co/t/trying-to-configure-master-and-data-nodes-on-the-same-system/198522/1 "2019-09-07T20:57:00Z")

</div>

Hello All, I am trying to get an understanding of the Elasticsearch cluster system. Hence, I have set up the `Elasticsearch.yml` file in the following. I have created 2 folders - one for Master and the other is Data. However, I get an error **"Failed to send join request to master..**. My configurations are as follows

` **Master Node**

cluster.name: remote  
node.name: Remote-Master  
node.master: true  
node.data: false  
path.data: D:\ELK-Runnable\Elasticsearch\data  
path.logs: D:\ELK-Runnable\Elasticsearch\logs  
network.host: 0.0.0.0  
http.port: 9200-9299  
transport.port: 9300-9399  
discovery.zen.minimum\_master\_nodes: 1`

` **Data Node**

cluster.name: remote  
node.name: Remote-Data  
node.master: false  
node.data: true  
path.data: D:\ELK-Runnable\Elasticsearch\_Data\data  
path.logs: D:\ELK-Runnable\Elasticsearch\_Data\logs  
network.host: 0.0.0.0  
http.port: 9200-9299  
transport.port: 9300-9399  
discovery.zen.minimum\_master\_nodes: 1 `

The error is listed below  
`[2019-09-07T20:31:15,578][INFO][o.e.d.z.ZenDiscovery] [Remote-Data] failed to send join request to master [{Remote-Master}{96wtLUIOQz2YHSoiCYHIiA}{HZrGJ25IQHOelqzyc3FfRw}{127.0.0.1}{127.0.0.1:9300}{ml.machine_memory=17039638528, ml.max_open_jobs=20, xpack.installed=true, ml.enabled=true}], reason [RemoteTransportException[[Remote-Master][127.0.0.1:9300][internal:discovery/zen/join]]; nested: IllegalArgumentException[can't add node {Remote-Data}{96wtLUIOQz2YHSoiCYHIiA}{UrKgT27aSjmPGhmgxA81jQ}{192.168.0.157}{192.168.0.157:9300}{ml.machine_memory=17039638528, ml.max_open_jobs=20, xpack.installed=true, ml.enabled=true}, found existing node {Remote-Master}{96wtLUIOQz2YHSoiCYHIiA}{HZrGJ25IQHOelqzyc3FfRw}{127.0.0.1}{127.0.0.1:9300}{ml.machine_memory=17039638528, xpack.installed=true, ml.max_open_jobs=20, ml.enabled=true} with the same id but is a different node instance]; ]`

I just want to achieve to ingest data through the master into the data node. I am just getting an understanding of cluster management. Any suggestions would be great. Thanks

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 9, 2019, 3:44am UTC](https://discuss.elastic.co/t/trying-to-configure-master-and-data-nodes-on-the-same-system/198522/2 "2019-09-09T03:44:37Z")

</div>

Hi @revglen welcome to the community and thanks for trying elasticsearch.

Typically it is not recommended / best practice to run more than 1 node on a single server it can cause issues than can be difficult to debug.

> [@revglen](#):
>
> I just want to achieve to ingest data through the master into the data node. I am just getting an understanding of cluster management.

Also it is also an anti-pattern / not best practice to attempt to ingest data through the master only node, the master node is really just to keep cluster state not to do actual indexing and query.

Perhaps you could read this section on node types and what their roles / purposes are and that will help clarify a few things.

> **[Node | Elasticsearch Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html)**

Generally I would suggest a new user to just set up single node with default config and get used to it. By default a single node with default will be both a data node and master. If you really want to run separately you should run them on separate servers and point your ingest to the data node.

Good luck!

---

<div class="post-metadata">

**Author:** ![revglen](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@revglen](https://discuss.elastic.co/u/revglen)\
**Post date:** [September 9, 2019, 9:20am UTC](https://discuss.elastic.co/t/trying-to-configure-master-and-data-nodes-on-the-same-system/198522/3 "2019-09-09T09:20:58Z")

</div>

Thanks Stephen. It is indeed not a good practice to maintain multiple nodes on a single server.

---

<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:** [October 7, 2019, 9:21am UTC](https://discuss.elastic.co/t/trying-to-configure-master-and-data-nodes-on-the-same-system/198522/4 "2019-10-07T09:21:05Z")

</div>

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