- Installation
- bin/plugin -install elasticsearch/elasticsearch-river-rabbitmq/2.3.0
- River Creation
curl -XPUT 'localhost:9200/_river/my_river/_meta' -d '{ "type" : "rabbitmq", "rabbitmq" : { "host" : "localhost", "port" : 5672, "user" : "guest", "pass" : "guest", "vhost" : "/", "queue" : "elasticsearch", "exchange" : "elasticsearch", "routing_key" : "elasticsearch", "exchange_declare" : true, "exchange_type" : "direct", "exchange_durable" : true, "queue_declare" : true, "queue_bind" : true, "queue_durable" : true, "queue_auto_delete" : false, "heartbeat" : "30m", "qos_prefetch_size" : 0, "qos_prefetch_count" : 10, "nack_errors" : true }, "index" : { "bulk_size" : 100, "bulk_timeout" : "10ms", "ordered" : false, "replication" : "default" } }'
... "rabbitmq" : { "addresses" : [ { "host" : "rabbitmq-host1", "port" : 5672 }, { "host" : "rabbitmq-host2", "port" : 5672 } ], "user" : "guest", "pass" : "guest", "vhost" : "/", ... } ...
- Reference
Friday, January 2, 2015
elasticsearch-river-rabbitmq
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.