Using the RabbitMQ river
RabbitMQ is a fast message broker, which can handle thousands of messages in a second. It can be very handy to be used in conjunction with ElasticSearch to bulk index records.
The RabbitMQ river plugin is designed to wait for messages that store bulk operations and index them.
Getting ready
You need a working ElasticSearch cluster and a working RabbitMQ instance installed in the same machine of ElasticSearch.
How to do it...
For using the RabbitMQ river, we need to perform the following steps:
- Firstly, we need to install the RabbitMQ river plugin, which is available on GitHub (https://github.com/elasticsearch/elasticsearch-river-rabbitmq). We can install the river plugin in the following way:
bin/plugin -install elasticsearch/elasticsearch-river-rabbitmq/1.6.0
- The result should be as follows:
-> Installing elasticsearch/elasticsearch-river-rabbitmq/1.6.0... Trying http://download.elasticsearch.org/elasticsearch/elasticsearch-river-rabbitmq/elasticsearch-river-rabbitmq...