# Clustering with Elasticsearch issues

**URL:** https://discuss.elastic.co/t/clustering-with-elasticsearch-issues/48327
**Category:** Elasticsearch
**Created:** [April 25, 2016, 1:44pm UTC](https://discuss.elastic.co/t/clustering-with-elasticsearch-issues/48327 "2016-04-25T13:44:46Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![ProjAlpha](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@ProjAlpha](https://discuss.elastic.co/u/ProjAlpha)
#### Post date: [April 25, 2016, 1:44pm UTC](https://discuss.elastic.co/t/clustering-with-elasticsearch-issues/48327/1 "2016-04-25T13:44:46Z")

</div>

Hi,

Think I'm going crazy with this,

Using the latest stable release of Elasticsearch and testing the cluster-function on ubuntu 14.04. They only joins if using:  
network.host  
discovery.zen.ping.unicast.hosts

With 3 VM, I cannot add the line node.master/data, elasticsearch fails to start if I try. Been reading through the docs but cannot see the problem.

If anyone may have a hint, guidence is gold now.

Regards

---

<div class="post-metadata">

### Author: ![Bruce\_Ritchie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bruce_ritchie/32/9370_2.png) [@Bruce\_Ritchie](https://discuss.elastic.co/u/Bruce_Ritchie)
#### Post date: [April 25, 2016, 1:54pm UTC](https://discuss.elastic.co/t/clustering-with-elasticsearch-issues/48327/2 "2016-04-25T13:54:35Z")

</div>

What error are you receiving?

---

<div class="post-metadata">

### Author: ![ProjAlpha](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@ProjAlpha](https://discuss.elastic.co/u/ProjAlpha)
#### Post date: [April 25, 2016, 5:57pm UTC](https://discuss.elastic.co/t/clustering-with-elasticsearch-issues/48327/3 "2016-04-25T17:57:50Z")

</div>

Nothing actually, dont know if I can find more logs but when starting the service, only [fail].

---

<div class="post-metadata">

### Author: ![imabob](https://avatars.discourse-cdn.com/v4/letter/i/d26b3c/32.png) [@imabob](https://discuss.elastic.co/u/imabob)
#### Post date: [April 25, 2016, 6:15pm UTC](https://discuss.elastic.co/t/clustering-with-elasticsearch-issues/48327/4 "2016-04-25T18:15:09Z")

</div>

What does your config file look like? Config issues can prevent ES from starting up.

Finding the log file will most likely give some additional information. The default location is /var/log/elasticsearch.

---

<div class="post-metadata">

### Author: ![pickypg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pickypg/32/62409_2.png) [@pickypg](https://discuss.elastic.co/u/pickypg)
#### Post date: [April 25, 2016, 6:58pm UTC](https://discuss.elastic.co/t/clustering-with-elasticsearch-issues/48327/5 "2016-04-25T18:58:29Z")

</div>

> They only joins if using:  
> `network.host`  
> `discovery.zen.ping.unicast.hosts`

Starting with ES 2.0, Elasticsearch only binds to localhost by default and therefore it will _never_ be part of another machine's cluster by default. As such, it makes sense that you need to specify both the actual host address (which is assumed as the `network.bind_host` and `network.publish_host` settings).

> With 3 VM, I cannot add the line node.master/data, elasticsearch fails to start if I try. Been reading through the docs but cannot see the problem.

This doesn't make much sense to me. Can you elaborate on _exactly_ what you are doing?

Thanks

---

<div class="post-metadata">

### Author: ![ProjAlpha](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@ProjAlpha](https://discuss.elastic.co/u/ProjAlpha)
#### Post date: [April 25, 2016, 7:25pm UTC](https://discuss.elastic.co/t/clustering-with-elasticsearch-issues/48327/6 "2016-04-25T19:25:04Z")

</div>

After learning ELK with elasticsearch 1.2 (think it was) it makes sense to avoid joining cluster after firing it up.

To refrase, I'm trying to create a master only node (and client later). Im thinking of maybe not enough data nodes or something, or define minimum elig master nodes.  
The way from docs, add node.master in a cluster but elasticsearch wont start. I type node.data and node.master as true, still wont start.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [April 25, 2016, 11:16pm UTC](https://discuss.elastic.co/t/clustering-with-elasticsearch-issues/48327/7 "2016-04-25T23:16:10Z")

</div>

If you can provide your config then we can probably help

---

<div class="post-metadata">

### Author: ![ProjAlpha](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@ProjAlpha](https://discuss.elastic.co/u/ProjAlpha)
#### Post date: [April 26, 2016, 7:03am UTC](https://discuss.elastic.co/t/clustering-with-elasticsearch-issues/48327/8 "2016-04-26T07:03:34Z")

</div>

Sorry,  
The only active lines it the elasticsearch.yml is:

[cluster.name](http://cluster.name): zion  
network.host: 192.168.1.253  
discovery.zen.ping.unicast.hosts: ["192.168.1.250", "192.168.1.251"]

As soon as I add the line  
node.master: true  
It is not possible to start elasticsearch service.  
Or if I add  
node.data: false  
node.master: false  
or any other combination from the docs for 2.3.X version.

Regards

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [April 26, 2016, 7:07am UTC](https://discuss.elastic.co/t/clustering-with-elasticsearch-issues/48327/9 "2016-04-26T07:07:08Z")

</div>

What shows in the logs if you add that?

---

<div class="post-metadata">

### Author: ![ProjAlpha](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@ProjAlpha](https://discuss.elastic.co/u/ProjAlpha)
#### Post date: [April 26, 2016, 8:04am UTC](https://discuss.elastic.co/t/clustering-with-elasticsearch-issues/48327/10 "2016-04-26T08:04:41Z")

</div>

Nothing, if I'm not missing anything.  
Added log\_daemon\_msg to the init.d/elasticsearch, no more output than before [fail]  
Looking /var/log/elasticsearch, nothing.

---

<div class="post-metadata">

### Author: ![ProjAlpha](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@ProjAlpha](https://discuss.elastic.co/u/ProjAlpha)
#### Post date: [April 28, 2016, 4:07pm UTC](https://discuss.elastic.co/t/clustering-with-elasticsearch-issues/48327/11 "2016-04-28T16:07:08Z")

</div>

My fellow users, no one with a finger pointing for tip/guidence?

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [April 30, 2016, 1:27am UTC](https://discuss.elastic.co/t/clustering-with-elasticsearch-issues/48327/12 "2016-04-30T01:27:14Z")

</div>

It still sounds like a config issue, yaml is sensitive to spaces for eg.  
Post your entire config, but make sure you format it in your post using the `</>` button.

---

<div class="post-metadata">

### Author: ![ProjAlpha](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@ProjAlpha](https://discuss.elastic.co/u/ProjAlpha)
#### Post date: [April 30, 2016, 7:26pm UTC](https://discuss.elastic.co/t/clustering-with-elasticsearch-issues/48327/13 "2016-04-30T19:26:37Z")

</div>

Mark, that's it 🙂  
It was the 'space' that caused the problem.  
Thank you very much and hopefully I may return the favor someday.

Regards

---

<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: [July 5, 2017, 10:55pm UTC](https://discuss.elastic.co/t/clustering-with-elasticsearch-issues/48327/14 "2017-07-05T22:55:03Z")

</div>


