# Can't connect to localhost:9200, cluster health yellow

**URL:** https://discuss.elastic.co/t/cant-connect-to-localhost-9200-cluster-health-yellow/89367
**Category:** Elasticsearch
**Created:** [June 14, 2017, 11:37am UTC](https://discuss.elastic.co/t/cant-connect-to-localhost-9200-cluster-health-yellow/89367 "2017-06-14T11:37:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Saurab\_Dahal](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@Saurab\_Dahal](https://discuss.elastic.co/u/Saurab_Dahal)
#### Post date: [June 14, 2017, 11:37am UTC](https://discuss.elastic.co/t/cant-connect-to-localhost-9200-cluster-health-yellow/89367/1 "2017-06-14T11:37:01Z")

</div>

I read from various that if I want to create single node my number of replicas should be 0, but when i try  
`number_of_replicas: 0`in `elasticsearch.yml`, it gives me error that I cannot set index level setting on node level configuration and the suggestion was to use `curl`, I cannot start elasticsearch , so how can I send `curl` request to `localhost:9200`

`[2017-06-14T17:06:48,673][INFO][o.e.c.r.a.AllocationService] [node1] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.monitoring-es-2-2017.06.09][0], [.monitoring-data-2][0], [.watcher-history-3-2017.06.09][0], [.monitoring-alerts-2][0]] ...]).`

I used `tar` version of elasticsearch and not a `deb` file

---

<div class="post-metadata">

### Author: ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)
#### Post date: [June 14, 2017, 12:03pm UTC](https://discuss.elastic.co/t/cant-connect-to-localhost-9200-cluster-health-yellow/89367/2 "2017-06-14T12:03:11Z")

</div>

Hello,

You should be able to do at least basic requests to a cluster, regardless of it's state. Also, `YELLOW` state is generally common for a single node cluster.

Can you try running `curl localhost:9200` ?

Cheers

---

<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 12, 2017, 12:03pm UTC](https://discuss.elastic.co/t/cant-connect-to-localhost-9200-cluster-health-yellow/89367/3 "2017-07-12T12:03:21Z")

</div>

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