Giter Club home page Giter Club logo

elasticsearch-river-couchbase's Introduction

Couchbase River Plugin for ElasticSearch

This module is experimental. While attempts are made to track changes to the bucket map and reconnect accordingly, race-conditions are still present which may result in the loss of data during topology changes. It should NOT be used in production.

In order to install the plugin, simply run: bin/plugin -install mschoch/elasticsearch-river-couchbase/1.0.3-SNAPSHOT.

The Couchbase River allows to automatically index Couchbase and make it searchable using the TAP (http://www.couchbase.com/wiki/display/couchbase/TAP+Protocol) stream Couchbase provides. Setting it up is as simple as executing the following against elasticsearch:

curl -XPUT 'localhost:9200/_river/my_db/_meta' -d '{
    "type" : "couchbase",
    "couchbase" : {
        "uris": ["http://192.168.1.9:8091/pools"],
        "bucket": "default",
        "bucketPassword": ""
    },
    "index" : {
        "index" : "my_db",
        "type" : "my_db",
        "bulk_size" : "100",
        "bulk_timeout" : "10ms"
    }
}'

This call will create a river that uses the TAP stream to index all data within Couchbase. Moreover, any "future" changes will automatically be indexed as well, making your search index and Couchbase synchronized at all times.

The Couchbase river is provided as a plugin (including explanation on how to install it).

On top of that, in case of a failover, the Couchbase river will automatically be started on another elasticsearch node, and continue indexing from the last indexed ts.

Bulking

Bulking is automatically done in order to speed up the indexing process. If within the specified bulk_timeout more changes are detected, changes will be bulked up to bulk_size before they are indexed.

Building

This module is built using maven. It depends on specific forks of two libraries:

Eventually we hope to merge these changes (or more polished versions of the same) into the mainline Couchbase client.

elasticsearch-river-couchbase's People

Contributors

mschoch avatar

Stargazers

Will Gardella avatar Thomas Westphal avatar  avatar

Watchers

Joel Poloney avatar  avatar James Cloos avatar

elasticsearch-river-couchbase's Issues

It should NOT be used in production.

Hi,

Since this is a project that is about 5 years old and I still see the get off message on your readme file, I need to ask: Is there any plans/deadlines for when you will be supporting production code ? If not, Is there any other recommended module for this task ?

Cheers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.