Hello!
If you look at http://www.elasticsearch.org/guide/reference/river/ on the "Cluster Allocation" part it says that rivers are singletons within a cluster. That's why you can create a single river of the same type, but not second one.
--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch
Hello everybody!
I have the similar problem:
I try to run two rivers consequentially on two-nodes cluster (CouchDB rivers).
curl -XPUT 'localhost:9200/_river/my_db1/_meta' -d '{"type" : "couchdb","couchdb" : {"host" : "localhost","port" : 5984,"db" : "my_couch_db","filter" : null},
"index" : {"index" : "kot2","type" :
"kot_db","bulk_size" : "100","bulk_timeout" : "10ms"},"mappings": {"_id":{"type": "string","store": "yes"},"name": {"type": "string","store": "yes"}}}'
curl -XPUT 'localhost:9200/_river/my_db/_meta' -d '{"type" : "couchdb","couchdb" : {"host" : "localhost","port" : 5984,"db" : "my_couch_db","filter" : null},
"index" : {"index" : "kot","type" :
"kot_db","bulk_size" : "100","bulk_timeout" : "10ms"},"mappings": {"_id":{"type": "string","store": "yes"},"name": {"type": "string","store": "yes"}}}'
The first river is started successfully. The second river cannot be started. Only when I stop one of the nodes, the second river starts.
Did I do the things correctly ?