# Can't set up a cluster in Centos7

**URL:** <https://discuss.elastic.co/t/cant-set-up-a-cluster-in-centos7/115492>\
**Category:** Elasticsearch\
**Created:** [January 15, 2018, 8:02am UTC](https://discuss.elastic.co/t/cant-set-up-a-cluster-in-centos7/115492 "2018-01-15T08:02:01Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![f26227279](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/f26227279/32/21296_2.png) [@f26227279](https://discuss.elastic.co/u/f26227279)\
**Post date:** [January 15, 2018, 8:02am UTC](https://discuss.elastic.co/t/cant-set-up-a-cluster-in-centos7/115492/1 "2018-01-15T08:02:01Z")

</div>

Hi everyone, I want to set up a cluster on my Centos7.  
and this is my elasticsearch.yml.

```
---------------------------------- Cluster -----------------------------------
Use a descriptive name for your cluster:
cluster.name: Winoc logger

------------------------------------ Node ------------------------------------
Use a descriptive name for the node:
node.name: Centos1

Add custom attributes to the node:
#node.attr.rack: r1

---------------------------------- Network -----------------------------------
Set the bind address to a specific IP (IPv4 or IPv6):
network.host: 192.168.0.120
transport.host: localhost

Set a custom port for HTTP:
#http.port: 9200

For more information, consult the network module documentation.
----------------------------------- Paths ------------------------------------
Path to directory where to store the data (separate multiple locations by comma):
#path.data: /path/to/data

Path to log files:
#path.logs: /path/to/logs

#discovery.zen.minimum_master_nodes:

For more information, consult the zen discovery module documentation.
---------------------------------- Gateway -----------------------------------
Block initial recovery after a full cluster restart until N nodes are started:
#gateway.recover_after_nodes: 3

For more information, consult the gateway module documentation.
---------------------------------- Various -----------------------------------
Require explicit names when deleting indices:
#action.destructive_requires_name: true

# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.zen.ping.unicast.hosts: ["192.168.0.120", "192.168.0.243"]
#
# Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1):
#
#discovery.zen.minimum_master_nodes:
#
# For more information, consult the zen discovery module documentation.
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
#gateway.recover_after_nodes: 3
#
# For more information, consult the gateway module documentation.
#

```

log:

> **[來個 PPT 短網址 :: 縮圖剪剪樂!](https://ppt.cc/fVsg1x)**
>
> PPT 短網址，縮圖剪剪樂!

another node of elasticsearch.yml has the same cluster name.  
but the node can't find each other.

thank you in advance!

---

<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:** [January 15, 2018, 8:26am UTC](https://discuss.elastic.co/t/cant-set-up-a-cluster-in-centos7/115492/2 "2018-01-15T08:26:17Z")

</div>

Please edit your post and use the code button - `</>` - to format things. Alternatively, use the markdown style backticks.

It's really hard to read your config as is, which makes it hard to help.

Also, please post logs.

---

<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 15, 2018, 8:38am UTC](https://discuss.elastic.co/t/cant-set-up-a-cluster-in-centos7/115492/3 "2018-01-15T08:38:44Z")

</div>

I think the cluster name is weird. I'm unsure you can have "Spaces" in its name `cluster.name: Winoc logger`. I'd try to change that probably.

`transport.host: localhost` means that only local nodes will be able to connect to this node. So You can't form a cluster.

---

<div class="post-metadata">

**Author:** ![f26227279](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/f26227279/32/21296_2.png) [@f26227279](https://discuss.elastic.co/u/f26227279)\
**Post date:** [January 15, 2018, 8:44am UTC](https://discuss.elastic.co/t/cant-set-up-a-cluster-in-centos7/115492/4 "2018-01-15T08:44:36Z")

</div>

oh, but if I comment out transport.host: localhost and the Elasticsearch can't run any more.

> **[來個 PPT 短網址 :: 縮圖剪剪樂!](https://ppt.cc/fpuJSx)**
>
> PPT 短網址，縮圖剪剪樂!

---

<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 15, 2018, 9:07am UTC](https://discuss.elastic.co/t/cant-set-up-a-cluster-in-centos7/115492/5 "2018-01-15T09:07:15Z")

</div>

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with `</>` icon. Check the preview window.

Please read [https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html)

---

<div class="post-metadata">

**Author:** ![f26227279](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/f26227279/32/21296_2.png) [@f26227279](https://discuss.elastic.co/u/f26227279)\
**Post date:** [January 15, 2018, 9:46am UTC](https://discuss.elastic.co/t/cant-set-up-a-cluster-in-centos7/115492/6 "2018-01-15T09:46:26Z")

</div>

sorry for that.  
if I comment out transport.host: localhost.  
There are some problems

```
[2018-01-15T17:41:58,387][INFO][o.e.n.Node] [Centos1] starting ...
[2018-01-15T17:41:58,482][INFO][o.e.t.TransportService] [Centos1] publish_address {192.168.0.120:9300}, bound_addresses {192.168.0.120:9300}
[2018-01-15T17:41:58,490][INFO][o.e.b.BootstrapChecks] [Centos1] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: [1] bootstrap checks failed
[1]: max number of threads [409] for user [wlogger] is too low, increase to at least [4096]
[2018-01-15T17:41:58,501][INFO][o.e.n.Node] [Centos1] stopping ...
[2018-01-15T17:41:58,550][INFO][o.e.n.Node] [Centos1] stopped
[2018-01-15T17:41:58,550][INFO][o.e.n.Node] [Centos1] closing ...
[2018-01-15T17:41:58,555][INFO][o.e.n.Node] [Centos1] closed
```

---

<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 15, 2018, 10:06am UTC](https://discuss.elastic.co/t/cant-set-up-a-cluster-in-centos7/115492/7 "2018-01-15T10:06:43Z")

</div>

I answered you already about this.

---

<div class="post-metadata">

**Author:** ![f26227279](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/f26227279/32/21296_2.png) [@f26227279](https://discuss.elastic.co/u/f26227279)\
**Post date:** [January 15, 2018, 10:15am UTC](https://discuss.elastic.co/t/cant-set-up-a-cluster-in-centos7/115492/8 "2018-01-15T10:15:39Z")

</div>

sorry, can you give me more hints?

thanks a lot!

---

<div class="post-metadata">

**Author:** ![f26227279](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/f26227279/32/21296_2.png) [@f26227279](https://discuss.elastic.co/u/f26227279)\
**Post date:** [January 15, 2018, 10:26am UTC](https://discuss.elastic.co/t/cant-set-up-a-cluster-in-centos7/115492/9 "2018-01-15T10:26:38Z")

</div>

so weird, another node log:

```
2018-01-15T05:20:05,020][INFO][o.e.d.z.ZenDiscovery] [Centos3] failed to send join request to master [{Centos2}{xRZYgk5bR1WTCdwd4rX3TA}{072YqViAQg6c6B8EJAH-pw}{192.168.0.243}{192.168.0.243:9300}], reason [RemoteTransportException[[Centos2][192.168.0.243:9300][internal:discovery/zen/join]]; nested: ConnectTransportException[[Centos3][127.0.0.1:9300] connect_exception]; nested: IOException[Connection refused: 127.0.0.1/127.0.0.1:9300]; nested: IOException[Connection refused]; ]
[2018-01-15T05:20:08,025][INFO][o.e.d.z.ZenDiscovery] [Centos3] failed to send join request to master [{Centos2}{xRZYgk5bR1WTCdwd4rX3TA}{072YqViAQg6c6B8EJAH-pw}{192.168.0.243}{192.168.0.243:9300}], reason [RemoteTransportException[[Centos2][192.168.0.243:9300][internal:discovery/zen/join]]; nested: ConnectTransportException[[Centos3][127.0.0.1:9300] connect_exception]; nested: IOException[Connection refused: 127.0.0.1/127.0.0.1:9300]; nested: IOException[Connection refused]; ]

```

I think the problem is transport.host: localhost , but if I comment out it, and it can't run.

---

<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 15, 2018, 10:35am UTC](https://discuss.elastic.co/t/cant-set-up-a-cluster-in-centos7/115492/10 "2018-01-15T10:35:59Z")

</div>

I wrote:

Please read [https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html)

---

<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:** [February 12, 2018, 10:36am UTC](https://discuss.elastic.co/t/cant-set-up-a-cluster-in-centos7/115492/11 "2018-02-12T10:36:03Z")

</div>

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