Code Monkey home page Code Monkey logo

Comments (9)

deontologician avatar deontologician commented on July 3, 2024

Hey, sorry you ran into this. I'm taking a look at this today and should be able to get you a fix out

from elasticsearch-river-rethinkdb.

deontologician avatar deontologician commented on July 3, 2024

@ianjuma I'm not able to replicate this issue. Can you replicate the issue with a new rethinkdb server (with a different auth_key) and paste the output of

$ curl <HOST>:9200/_river/rethinkdb/_meta

from elasticsearch-river-rethinkdb.

ianjuma avatar ianjuma commented on July 3, 2024

Setup a new rethink server and a password. I set the auth_key with a PUT request to :9200/_river/rethinkdb/_meta

{
  "type":"rethinkdb",
  "auth_key": "password"
}

output of :9200/_river/rethinkdb/_meta

HTTP/1.1 200 OK
Content-Length: 301
Content-Type: application/json; charset=UTF-8

{
    "_id": "_meta", 
    "_index": "_river", 
    "_source": {
        "host": "localhost", 
        "port": 28015, 
        "rethinkdb": {
            "databases": {
                "inkoverflow": {
                    "Posts": {
                        "backfill": false, 
                        "index": "posts", 
                        "type": "post"
                    }, 
                    "Users": {
                        "backfill": false, 
                        "index": "users", 
                        "type": "user"
                    }
                }
            }
        }, 
        "type": "rethinkdb"
    }, 
    "_type": "rethinkdb", 
    "_version": 45, 
    "found": true
}

from elasticsearch-river-rethinkdb.

deontologician avatar deontologician commented on July 3, 2024

It doesn't look like the auth_key made it into the _meta document

from elasticsearch-river-rethinkdb.

deontologician avatar deontologician commented on July 3, 2024

Also, I just noticed: the host/port/auth_key need to be inside the rethinkdb object, not at the top level

from elasticsearch-river-rethinkdb.

ianjuma avatar ianjuma commented on July 3, 2024

Oh; is there another way of setting that up? I noticed that, expected it as well.

from elasticsearch-river-rethinkdb.

deontologician avatar deontologician commented on July 3, 2024

Yeah, try this:

$ curl -XPUT :9200/_river/rethinkdb/_meta -d '{
        "rethinkdb": {
            "host": "localhost", 
            "port": 28015,
            "auth_key": "password", 
            "databases": {
                "inkoverflow": {
                    "Posts": {
                        "backfill": false, 
                        "index": "posts", 
                        "type": "post"
                    }, 
                    "Users": {
                        "backfill": false, 
                        "index": "users", 
                        "type": "user"
                    }
                }
            }
        }, 
        "type": "rethinkdb"
    }'

from elasticsearch-river-rethinkdb.

ianjuma avatar ianjuma commented on July 3, 2024

That fixed it. Thanks a lot. Oh; the host/port/auth_key need to be inside the rethinkdb object. Update the README?

from elasticsearch-river-rethinkdb.

deontologician avatar deontologician commented on July 3, 2024

Ah!, good catch. Sorry about that.

from elasticsearch-river-rethinkdb.

Related Issues (13)

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.