Elasticsearch and MongoDB: no river _meta document found after 5 attempts -
i have mongodb database named news
tried index es. using these plugins:
richardwilly98.elasticsearch/elasticsearch-river-mongodb/2.0.9 , elasticsearch/elasticsearch-mapper-attachments/2.5.0
this happening when tried create index. have tried delete index , recreating it, without helping.
$ curl -xput 'http://localhost:9200/_river/news/_meta' -d @init.json
init.json
{ "type": "mongodb", "mongodb": { "db": "news", "collection": "entries" }, "index": { "name": "news", "type": "entries" } }
here log
update_mapping [mongodb] (dynamic) mongodb river plugin - version[2.0.9] - hash[73ddea5] - time[2015-04-06t21:16:46z] setriverstatus called mongodb - running river mongodb startup pending starting river mongodb mongodb options: secondaryreadpreference [false], drop_collection [false], include_collection [], throttlesize [5000], gridfs [false], filter [null], db [news], collection [entries], script [null], indexing [news]/[entries] mongodb version - 3.0.2 update_mapping [mongodb] (dynamic) [org.elasticsearch.river.mongodb.collectionslurper] cannot .. import collection entries existing index d mongodb - initial_import_failed started river mongodb no river _meta document found after 5 attempts no river _meta document found after 5 attempts
any suggestions might wrong? i'm running es 1.5.2 , mongodb 3.0.2 on os x.
on the mongodb river github pages, looks plugin supported until version 1.4.2, not higher (i.e. you're running 1.5.2)
also note rivers have been deprecated in es v1.5 , there's open issue in mongodb river project on topic.
update after chatting @martins
finally, issue name of created river wrong (i.e. news
instead of mongodb
), following command create mongodb river, still works es 1.5.2 though not it's officially tested.
curl -xput 'http://localhost:9200/_river/mongodb/_meta' -d @init.json
Comments
Post a Comment