# Elasticsearch network host cant be set?

**URL:** https://discuss.elastic.co/t/elasticsearch-network-host-cant-be-set/55596
**Category:** Elasticsearch
**Created:** [July 15, 2016, 7:44am UTC](https://discuss.elastic.co/t/elasticsearch-network-host-cant-be-set/55596 "2016-07-15T07:44:14Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)
#### Post date: [July 15, 2016, 7:44am UTC](https://discuss.elastic.co/t/elasticsearch-network-host-cant-be-set/55596/1 "2016-07-15T07:44:14Z")

</div>

I have downloaded ES and configure the yml file for network host to be 0.0.0.0. Then when I start it up with **bin/elasticsearch** , it gives me the following error.

```
172.16.1.237:9300}, bound_addresses {[::]:9300}
Exception in thread "main" java.lang.RuntimeException: bootstrap checks failed
initial heap size [268435456] not equal to maximum heap size [2147483648]; this can cause resize pauses and prevents mlockall from locking the entire heap
max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]
please set [discovery.zen.minimum_master_nodes] to a majority of the number of master eligible nodes in your cluster
max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]
        at org.elasticsearch.bootstrap.BootstrapCheck.check(BootstrapCheck.java:125)
        at org.elasticsearch.bootstrap.BootstrapCheck.check(BootstrapCheck.java:85)
        at org.elasticsearch.bootstrap.BootstrapCheck.check(BootstrapCheck.java:65)
        at org.elasticsearch.bootstrap.Bootstrap$5.validateNodeBeforeAcceptingRequests(Bootstrap.java:178)
        at org.elasticsearch.node.Node.start(Node.java:373)
        at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:193)
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:252)
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:96)
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:91)
        at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:91)
        at org.elasticsearch.cli.Command.main(Command.java:53)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:70)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:63)
Refer to the log for complete error details.

```

What would be the issue?

---

<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: [July 15, 2016, 7:46am UTC](https://discuss.elastic.co/t/elasticsearch-network-host-cant-be-set/55596/2 "2016-07-15T07:46:30Z")

</div>

> [@Kennedy\_Kan1](#):
>
> bootstrap checks failed  
> initial heap size [268435456] not equal to maximum heap size [2147483648]; this can cause resize pauses and prevents mlockall from locking the entire heap  
> max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]  
> please set [discovery.zen.minimum\_master\_nodes] to a majority of the number of master eligible nodes in your cluster  
> max virtual memory areas vm.max\_map\_count [65530] likely too low, increase to at least [262144]

You read all of that right?

---

<div class="post-metadata">

### Author: ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)
#### Post date: [July 15, 2016, 7:48am UTC](https://discuss.elastic.co/t/elasticsearch-network-host-cant-be-set/55596/3 "2016-07-15T07:48:02Z")

</div>

Hi @warkolm,

Yes, but I could not understand its relationship when I have set the network.host to 0.0.0.0. When I comment it out, ES works again. This is the first time I come across with these events and I am not familiar with what they mean.

---

<div class="post-metadata">

### Author: ![es\_yong](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@es\_yong](https://discuss.elastic.co/u/es_yong)
#### Post date: [July 15, 2016, 10:12am UTC](https://discuss.elastic.co/t/elasticsearch-network-host-cant-be-set/55596/4 "2016-07-15T10:12:06Z")

</div>

which version are you using? could you paste your es config file?

---

<div class="post-metadata">

### Author: ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)
#### Post date: [July 15, 2016, 10:15am UTC](https://discuss.elastic.co/t/elasticsearch-network-host-cant-be-set/55596/5 "2016-07-15T10:15:39Z")

</div>

I am using ES 5 Alpha 4.  
Here is my es config file: [http://paste.ubuntu.com/19478337/](http://paste.ubuntu.com/19478337/)

---

<div class="post-metadata">

### Author: ![es\_yong](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@es\_yong](https://discuss.elastic.co/u/es_yong)
#### Post date: [July 15, 2016, 10:20am UTC](https://discuss.elastic.co/t/elasticsearch-network-host-cant-be-set/55596/6 "2016-07-15T10:20:48Z")

</div>

😰 I didn't use this version, since it's not free. In ES 2.x, these messages are WARN, so it can be startup success. there is a section of ES document include how to increase heap size and max file descriptors.

---

<div class="post-metadata">

### Author: ![es\_yong](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@es\_yong](https://discuss.elastic.co/u/es_yong)
#### Post date: [July 15, 2016, 10:26am UTC](https://discuss.elastic.co/t/elasticsearch-network-host-cant-be-set/55596/7 "2016-07-15T10:26:30Z")

</div>

They are here:  
[https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html)  
[https://www.elastic.co/guide/en/elasticsearch/guide/current/\_file\_descriptors\_and\_mmap.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/_file_descriptors_and_mmap.html)

---

<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: [July 15, 2016, 10:58am UTC](https://discuss.elastic.co/t/elasticsearch-network-host-cant-be-set/55596/8 "2016-07-15T10:58:33Z")

</div>

> [@es\_yong](#):
>
> I didn't use this version, since it's not free.

Huh?  
Yes, it is.

---

<div class="post-metadata">

### Author: ![peterkimnyc](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@peterkimnyc](https://discuss.elastic.co/u/peterkimnyc)
#### Post date: [July 21, 2016, 3:34pm UTC](https://discuss.elastic.co/t/elasticsearch-network-host-cant-be-set/55596/9 "2016-07-21T15:34:51Z")

</div>

I just ran into this error too. Looking at the code, it looks like once you decide to explicitly set network.host, we assume you're doing this because you've moved beyond a simple dev instance and are setting up something that's more production-like.

Since we are assuming this is now a production-like environment, we now enforce some of these checks that we otherwise wouldn't in a simple dev installation.

> <https://github.com/elastic/elasticsearch/blob/e772b6d924c8e53c2ab1744faddc610baf1b6287/core/src/main/java/org/elasticsearch/bootstrap/BootstrapCheck.java#L46>

Hope that helps,  
Peter

---

<div class="post-metadata">

### Author: ![peterkimnyc](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@peterkimnyc](https://discuss.elastic.co/u/peterkimnyc)
#### Post date: [July 21, 2016, 3:39pm UTC](https://discuss.elastic.co/t/elasticsearch-network-host-cant-be-set/55596/10 "2016-07-21T15:39:28Z")

</div>

Looks like this is already even documented in master! 🙂

[https://www.elastic.co/guide/en/elasticsearch/reference/master/bootstrap-checks.html](https://www.elastic.co/guide/en/elasticsearch/reference/master/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: [July 5, 2017, 10:33pm UTC](https://discuss.elastic.co/t/elasticsearch-network-host-cant-be-set/55596/11 "2017-07-05T22:33:38Z")

</div>


