# Adding node configurations to elasticsearch.yml file doesn't work

**URL:** <https://discuss.elastic.co/t/adding-node-configurations-to-elasticsearch-yml-file-doesnt-work/140257>\
**Category:** Elasticsearch\
**Created:** [July 17, 2018, 6:54am UTC](https://discuss.elastic.co/t/adding-node-configurations-to-elasticsearch-yml-file-doesnt-work/140257 "2018-07-17T06:54:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![redhd0410](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@redhd0410](https://discuss.elastic.co/u/redhd0410)\
**Post date:** [July 17, 2018, 6:54am UTC](https://discuss.elastic.co/t/adding-node-configurations-to-elasticsearch-yml-file-doesnt-work/140257/1 "2018-07-17T06:54:04Z")

</div>

Hello. I'm new to elasticsearch and I'm trying to change the configuration file.  
So I uncommented cluster.name and node.name lines and renamed them, which work fine after waiting for a few seconds. However, I tried adding the following lines after node.name and it stops working (connection refused):

> ```
> node.master: false
> node.data: true
> index.number_of_shards: 5
> index.number_of_replicas: 1
> network.host: 0.0.0.0
> transport.tcp.port: 9301
> transport.tcp.compress: true
> http.port: 9201
> http.enabled: true
> discovery.zen.minimum_master_nodes: 1
> discovery.zen.ping.timeout: 10s
> discovery.zen.ping.multicast.enabled: false
> discovery.zen.ping.unicast.hosts: ["127.0.0.1:9300"]
> 
> ```

Any suggestions?

---

<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 17, 2018, 6:54am UTC](https://discuss.elastic.co/t/adding-node-configurations-to-elasticsearch-yml-file-doesnt-work/140257/2 "2018-07-17T06:54:48Z")

</div>

Please paste the log showing startup.

---

<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:** [August 14, 2018, 6:54am UTC](https://discuss.elastic.co/t/adding-node-configurations-to-elasticsearch-yml-file-doesnt-work/140257/3 "2018-08-14T06:54:52Z")

</div>

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