# Issue with cluster config

**URL:** https://discuss.elastic.co/t/issue-with-cluster-config/74717
**Category:** Elasticsearch
**Created:** [February 10, 2017, 10:07pm UTC](https://discuss.elastic.co/t/issue-with-cluster-config/74717 "2017-02-10T22:07:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ggp](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@ggp](https://discuss.elastic.co/u/ggp)
#### Post date: [February 10, 2017, 10:07pm UTC](https://discuss.elastic.co/t/issue-with-cluster-config/74717/1 "2017-02-10T22:07:46Z")

</div>

i have 3 node with ES 5.2x & Kibana running, so when i try to cluster 2 nodes i am seeing below error in kibana logs and can't open Kibana UI, if i comment below line in elasticsearch.yml its fine, Any clue what could be the issue ?

#discovery.zen.ping.unicast.hosts: ["hostA","hostB"]

> [$injector:unpr] Unknown provider: reportStatsProvider \<- reportStats  
> [AngularJS](http://errors.angularjs.org/1.4.7/$injector/unpr?p0=reportStatsProvider%20%3C-%20reportStats) ([http://localhost:5601/bundles/commons.bundle.js?v=14695:36](http://localhost:5601/bundles/commons.bundle.js?v=14695:36))  
> Version: 5.2.0  
> Build: 14695  
> Error: Error: [$injector:unpr] Unknown provider: reportStatsProvider \<- reportStats  
> [AngularJS](http://errors.angularjs.org/1.4.7/$injector/unpr?p0=reportStatsProvider%20%3C-%20reportStats) ([http://localhost:5601/bundles/commons.bundle.js?v=14695:36](http://localhost:5601/bundles/commons.bundle.js?v=14695:36))  
> onerror@[http://localhost:5601/bundles/commons.bundle.js?v=14695:69:13512](http://localhost:5601/bundles/commons.bundle.js?v=14695:69:13512)

---

<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: [February 10, 2017, 10:11pm UTC](https://discuss.elastic.co/t/issue-with-cluster-config/74717/2 "2017-02-10T22:11:03Z")

</div>

> [@ggp](#):
>
> discovery.zen.ping.unicast.hosts: ["localhost1","localhost2"]

That will never form a cluster as localhost can only ever be accessed locally. You may need to put in the actual IP.

---

<div class="post-metadata">

### Author: ![ggp](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@ggp](https://discuss.elastic.co/u/ggp)
#### Post date: [February 10, 2017, 11:24pm UTC](https://discuss.elastic.co/t/issue-with-cluster-config/74717/3 "2017-02-10T23:24:17Z")

</div>

Mark, i replaced ip with localhost when i posted my question sorry for any confusion, here is my Nodes config

**NodeA**  
cluster.name: support-dev  
node.name: sd-1  
path.data: /apps/data/esdata/data/  
path.logs: /apps/data/esdata/logs/  
node.master: true  
node.data: true  
bootstrap.memory\_lock: true  
network.host: hostA  
network.bind\_host: 0.0.0.0  
network.publish\_host: hostA  
discovery.zen.ping.unicast.hosts: ["hostA","hostB"]  
discovery.zen.minimum\_master\_nodes: 2  
xpack.security.enabled: false  
xpack.monitoring.enabled: true  
xpack.graph.enabled: false  
xpack.watcher.enabled: false

**NodeB**  
cluster.name: support-dev  
node.name: sd-2  
path.data: /apps/data/esdata/data/  
path.logs: /apps/data/esdata/logs/  
node.master: true  
node.data: true  
bootstrap.memory\_lock: true  
network.host: hostB  
network.bind\_host: 0.0.0.0  
network.publish\_host: hostB  
discovery.zen.ping.unicast.hosts: ["hostA","hostB"]  
discovery.zen.minimum\_master\_nodes: 2  
xpack.security.enabled: false  
xpack.monitoring.enabled: true  
xpack.graph.enabled: false  
xpack.watcher.enabled: false

I tried to get the cluster state with

> curl -XGET '[http://hostA:9200/\_cluster/state?pretty](http://hostA:9200/_cluster/state?pretty)'

and here is the output

> {  
> "error" : {  
> "root\_cause" : [  
> {  
> "type" : "master\_not\_discovered\_exception",  
> "reason" : null  
> }  
> ],  
> "type" : "master\_not\_discovered\_exception",  
> "reason" : null  
> },  
> "status" : 503  
> }

also i see below in the **hostA** logs

> 017-02-12T15:51:51,730][INFO][o.e.d.z.ZenDiscovery]  
> [sp-1] failed to send join request to master [{sp-2}{10\_pnjCZTZSGVQYY-E0xWQ}{JFMvqYPATTi6X1loAqjwoQ}  
> **{hostB}{ip2:9300}** ],  
> reason [RemoteTransportException[[sp-2][ip2:9300][internal:discovery/zen/join]];  
> nested: ConnectTransportException[[sp-1][ip1:9300] connect\_timeout[30s]];

do you see any issues with above configs

---

<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: [March 10, 2017, 11:24pm UTC](https://discuss.elastic.co/t/issue-with-cluster-config/74717/4 "2017-03-10T23:24:22Z")

</div>

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