# MongoDB River Reindex

**URL:** <https://discuss.elastic.co/t/mongodb-river-reindex/18308>\
**Category:** Elasticsearch\
**Created:** [June 24, 2014, 8:50pm UTC](https://discuss.elastic.co/t/mongodb-river-reindex/18308 "2014-06-24T20:50:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsturzl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsturzl/32/1058_2.png) [@tsturzl](https://discuss.elastic.co/u/tsturzl)\
**Post date:** [June 24, 2014, 8:50pm UTC](https://discuss.elastic.co/t/mongodb-river-reindex/18308/1 "2014-06-24T20:50:31Z")

</div>

This morning we had an issue with Elastic Search on one of our production  
servers. We had to reindex the entire thing. It appeared in several posts  
[http://elasticsearch-users.115913.n3.nabble.com/How-to-reindex-an-ES-index-td3089964.html](http://elasticsearch-users.115913.n3.nabble.com/How-to-reindex-an-ES-index-td3089964.html)  
I've seen from various sources that the only real way to do this was remove  
the index and recreate the river.

So I did exactly that. I removed the index, then I tried recreating the  
river. I'm not getting this error:

{"error":"UnavailableShardsException[[\_river][0] [2] shardIt, [0] active :

> Timeout waiting for [1m], request: index {[\_river][adn\_demo][\_meta],  
> source[\n{\n "type": "mongodb",\n "mongodb": {\n "servers":  
> [\n { "host": "10.128.3.250", "port": 27017 },\n {  
> "host": "10.128.4.5", "port": 27017 },\n { "host":  
> "10.128.4.6", "port": 27017 }\n ],\n "options": {  
> "secondary\_read\_preference": true },\n "db": "adn\_demo",\n  
> "collection": "jobPosts"\n },\n "index": {\n "name":  
> "job\_posts\_index\_prd",\n "type": "job\_post\_prd"\n  
> }\n}]}]","status":503}

I'm under the impression that I'm not part of a replica set as  
"localhost:9200/\_nodes/process?pretty" outputs:

> {  
> "ok" : true,  
> "cluster\_name" : "adnElasticsearch",  
> "nodes" : {  
> "oDBNxMd9QZ-vxnE7PoWFig" : {  
> "name" : "Professor X",  
> "transport\_address" : "inet[web-api1]",  
> "hostname" : "web-api1",  
> "version" : "0.90.3",  
> "http\_address" : "inet[web-api1",  
> "process" : {  
> "refresh\_interval" : 1000,  
> "id" : 23372,  
> "max\_file\_descriptors" : 65535  
> }  
> }  
> }  
> }

However we duplicate ES to provide redundancy, so the 2 other servers are  
configured like this:

> {  
> "ok" : true,  
> "cluster\_name" : "adnElasticsearch",  
> "nodes" : {  
> "aQS4U9axRryqnVN7RqFnWw" : {  
> "name" : "Anomaloco",  
> "transport\_address" : "inet[/10.128.4.10:9300]",  
> "hostname" : "web-api3",  
> "version" : "0.90.3",  
> "http\_address" : "inet[web-api3/10.128.4.10:9200]",  
> "process" : {  
> "refresh\_interval" : 1000,  
> "id" : 25224,  
> "max\_file\_descriptors" : 65535  
> }  
> },  
> "NsKtV7UiSx2YPSJHGBs8RQ" : {  
> "name" : "Bullseye",  
> "transport\_address" : "inet[web-api2/10.128.4.9:9300]",  
> "hostname" : "web-api2",  
> "version" : "0.90.3",  
> "http\_address" : "inet[web-api2/10.128.4.9:9200]",  
> "process" : {  
> "refresh\_interval" : 1000,  
> "id" : 804,  
> "max\_file\_descriptors" : 65535  
> }  
> }  
> }  
> }

I assume web-api1 got removed from the replica set when I removed the index.

I had been kind of dropped into this system when we lost our system  
administrator. I'm not fluent in Elasticsearch, and I'm having troubles  
finding out how to resolve this issue.

How do I recreate the index/river?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/129e8a55-5e31-4f2f-adec-f6b306128a5c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/129e8a55-5e31-4f2f-adec-f6b306128a5c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:20am UTC](https://discuss.elastic.co/t/mongodb-river-reindex/18308/2 "2017-07-06T01:20:03Z")

</div>


