# Node client seems to be a master only node

**URL:** <https://discuss.elastic.co/t/node-client-seems-to-be-a-master-only-node/38729>\
**Category:** Elasticsearch\
**Created:** [January 8, 2016, 1:49pm UTC](https://discuss.elastic.co/t/node-client-seems-to-be-a-master-only-node/38729 "2016-01-08T13:49:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbalaguero](https://avatars.discourse-cdn.com/v4/letter/j/c68b51/32.png) [@jbalaguero](https://discuss.elastic.co/u/jbalaguero)\
**Post date:** [January 8, 2016, 1:49pm UTC](https://discuss.elastic.co/t/node-client-seems-to-be-a-master-only-node/38729/1 "2016-01-08T13:49:31Z")

</div>

Hello,

I'm starting ES 2.1.1 from console on my server (192.168.1.70):

```auto
[2016-01-08 13:38:17,650][INFO][node] [ventusproxy01] starting ...
[2016-01-08 13:38:17,726][INFO][transport] [ventusproxy01] publish_address {192.168.1.70:9300}, bound_addresses {192.168.1.70:9300}
[2016-01-08 13:38:17,736][INFO][discovery] [ventusproxy01] cl1_ventusproxy/BKS4B1E0QoW-TAuLtxftnA
[2016-01-08 13:38:20,760][INFO][cluster.service] [ventusproxy01] new_master {ventusproxy01}{BKS4B1E0QoW-TAuLtxftnA}{192.168.1.70}{192.168.1.70:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)
[2016-01-08 13:38:20,773][INFO][http] [ventusproxy01] publish_address {192.168.1.70:9200}, bound_addresses {192.168.1.70:9200}
[2016-01-08 13:38:20,773][INFO][node] [ventusproxy01] started

```

Now I'm trying to connect to this instance from a java app within the same node (192.168.1.70) using the NODE CLIENT and acting just as a client (no data). This is my code, I'm setting the mandatory "path.home" to the ES server installation:

```auto
Settings.Builder s = NodeBuilder.nodeBuilder().settings();
s.put("cluster.name", "cl1_ventusproxy");
s.put("node.name", "client_ventusproxy01");
s.put("path.home", "/usr/local/elasticsearch-2.1.1");
   
this.node = NodeBuilder.nodeBuilder().settings(s).data(false).client(true).node();
this.client = this.node.client();

```

This is the trace when this client starts:

```auto
2016-01-08 14:19:56 [client_ventusproxy01] version[2.1.1], pid[19458], build[40e2c53/2015-12-15T13:05:55Z]
2016-01-08 14:19:56 [client_ventusproxy01] initializing ...
2016-01-08 14:19:58 [client_ventusproxy01] initialized
2016-01-08 14:19:58 [client_ventusproxy01] starting ...
2016-01-08 14:19:58 [client_ventusproxy01] publish_address {192.168.1.70:9301}, bound_addresses {192.168.1.70:9301}
2016-01-08 14:19:58 [client_ventusproxy01] cl1_ventusproxy/SpFR4etZQHmo9UZS8Z5OrA
2016-01-08 14:20:02 [client_ventusproxy01] detected_master {ventusproxy01}{wSougvHeSVe8gNDWa2WHlQ}{192.168.1.70}{192.168.1.70:9300}, added {{ventusproxy01}{wSougvHeSVe8gNDWa2WHlQ}{192.168.1.70}{192.168.1.70:9300},}, reason: zen-disco-receive(from master [{ventusproxy01}{wSougvHeSVe8gNDWa2WHlQ}{192.168.1.70}{192.168.1.70:9300}])
2016-01-08 14:20:02 [client_ventusproxy01] publish_address {192.168.1.70:9201}, bound_addresses {192.168.1.70:9201}
2016-01-08 14:20:02 [client_ventusproxy01] started

```

And we can see this in the console we used to start ES server:

```auto
[2016-01-08 14:20:01,981][INFO][cluster.service] [ventusproxy01] added {{client_ventusproxy01}{SpFR4etZQHmo9UZS8Z5OrA}{192.168.1.70}{192.168.1.70:9301}{client=true, data=false},}, reason: zen-disco-join(join from node[{client_ventusproxy01}{SpFR4etZQHmo9UZS8Z5OrA}{192.168.1.70}{192.168.1.70:9301}{client=true, data=false}])

```

But when I check the cluster from Marvel, I see "client\_ventusproxy01" as a "Master only node" and "ventusproxy01" as a "Master node".

Should not "client\_ventusproxy01" be just a client? Why is it detected as a "Master only node"? Is this due to the client "path.home" is set to the ES server installation? If this is the problem, what should I set then?

It would be great if someone could clarify this.

Thanks.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 8, 2016, 2:23pm UTC](https://discuss.elastic.co/t/node-client-seems-to-be-a-master-only-node/38729/2 "2016-01-08T14:23:38Z")

</div>

Not sure if this is your issue but the way you should build settings is:

```auto
Settings.builder();

```

---

<div class="post-metadata">

**Author:** ![jbalaguero](https://avatars.discourse-cdn.com/v4/letter/j/c68b51/32.png) [@jbalaguero](https://discuss.elastic.co/u/jbalaguero)\
**Post date:** [January 8, 2016, 3:22pm UTC](https://discuss.elastic.co/t/node-client-seems-to-be-a-master-only-node/38729/3 "2016-01-08T15:22:50Z")

</div>

Changed and I get the same.

From Marvel I see that the "client\_ventusproxy01" has no indexes, no documents, no data, no shards. But the "ventusproxy01" (our master node) contains all the indexes and shards that I'm creating from my client.

So is it possible that "Master only node" really means "Just client with no data" as I need?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 8, 2016, 3:40pm UTC](https://discuss.elastic.co/t/node-client-seems-to-be-a-master-only-node/38729/4 "2016-01-08T15:40:03Z")

</div>

Reading again your logs, I don't see anything wrong.

You started a node (which is master by default) and then started a Java client which joins the cluster.

Nothing looks wrong to me.

But if you don't want to see your node joining the cluster, you should use a Transport Client instead of a Client Node...

---

<div class="post-metadata">

**Author:** ![jbalaguero](https://avatars.discourse-cdn.com/v4/letter/j/c68b51/32.png) [@jbalaguero](https://discuss.elastic.co/u/jbalaguero)\
**Post date:** [January 8, 2016, 3:53pm UTC](https://discuss.elastic.co/t/node-client-seems-to-be-a-master-only-node/38729/5 "2016-01-08T15:53:36Z")

</div>

Thanks David. Yes, this is what I though as well. I think that I was confused when I saw "master only node" in Marvel (for my client). I suppose that "master only node" is the same than client ...

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 8, 2016, 4:23pm UTC](https://discuss.elastic.co/t/node-client-seems-to-be-a-master-only-node/38729/6 "2016-01-08T16:23:03Z")

</div>

Well. Could you make a screenshot of Marvel so we could open an issue about this?

---

<div class="post-metadata">

**Author:** ![jbalaguero](https://avatars.discourse-cdn.com/v4/letter/j/c68b51/32.png) [@jbalaguero](https://discuss.elastic.co/u/jbalaguero)\
**Post date:** [January 15, 2016, 1:40pm UTC](https://discuss.elastic.co/t/node-client-seems-to-be-a-master-only-node/38729/7 "2016-01-15T13:40:12Z")

</div>

Hi,

Sorry for the delay. I had to uninstall marvel and install it again.

Here the image: [http://www.grupoventus.com/img/marvel.png](http://www.grupoventus.com/img/marvel.png)

The 'client\_ventusproxy01' node is the client only node. If you move the cursor over the white star, the message that appears in the 'alt' is 'Master only node'.

---

<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, 11:24pm UTC](https://discuss.elastic.co/t/node-client-seems-to-be-a-master-only-node/38729/8 "2017-07-05T23:24:06Z")

</div>


