# Unassigned replicas

**URL:** <https://discuss.elastic.co/t/unassigned-replicas/57534>\
**Category:** Elasticsearch\
**Created:** [August 8, 2016, 10:56pm UTC](https://discuss.elastic.co/t/unassigned-replicas/57534 "2016-08-08T22:56:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wldbs0508](https://avatars.discourse-cdn.com/v4/letter/w/cab0a1/32.png) [@wldbs0508](https://discuss.elastic.co/u/wldbs0508)\
**Post date:** [August 8, 2016, 10:56pm UTC](https://discuss.elastic.co/t/unassigned-replicas/57534/1 "2016-08-08T22:56:28Z")

</div>

Hi,

I would like to set up Elasticsearch cluster. I have 2 data nodes and 2 master nodes. When I create index using this command, replica is unassigned.

curl -XPUT 'localhost:9200/test' -d '  
{  
"settings": {  
"number\_of\_shards": 1,  
"number\_of\_replicas": 1  
}  
}'

But primary shards are assigned well. A result of curl -XPOST 'localhost:9200/\_cluster/reroute?pretty&explain' looks like this:  
"routing\_table" : {  
"indices" : {  
"test2" : {  
"shards" : {  
"0" : [ {  
"state" : "STARTED",  
"primary" : true,  
"node" : "c9g5-\_h-ST-Hlwlh80DmWg",  
"relocating\_node" : null,  
"shard" : 0,  
"index" : "test2"  
}, {  
"state" : "UNASSIGNED",  
"primary" : false,  
"node" : null,  
"relocating\_node" : null,  
"shard" : 0,  
"index" : "test2",  
"unassigned\_info" : {  
"reason" : "INDEX\_CREATED",  
"at" : "2016-08-08T22:27:48.145Z"  
}  
} ]  
}  
},  
What is the problem? Elasticsearch version is 1.7 and all machines have JDK8. Also I set "cluster.routing.allocation.same\_shard.host" as false.  
If anybody has idea, please let me know.  
Thanks,  
Jiyoon

---

<div class="post-metadata">

**Author:** ![DiscussBuster](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/discussbuster/32/11042_2.png) [@DiscussBuster](https://discuss.elastic.co/u/DiscussBuster)\
**Post date:** [August 10, 2016, 4:06am UTC](https://discuss.elastic.co/t/unassigned-replicas/57534/2 "2016-08-10T04:06:44Z")

</div>

Any chance the data nodes are on the same host?

---

<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:28pm UTC](https://discuss.elastic.co/t/unassigned-replicas/57534/3 "2017-07-05T22:28:58Z")

</div>


