Git Product home page Git Product logo

Comments (5)

joschi avatar joschi commented on June 29, 2024

@msteinhoff Basically because it wasn't needed until now and because it's a "discouraged" way to connect to an Elasticsearch cluster (e. g. Elasticsearch 5.x will make that much harder and provide a "proper" HTTP client library for Java).

This being said, feel free to provide a pull request.

from dropwizard-elasticsearch.

msteinhoff avatar msteinhoff commented on June 29, 2024

Ah I see.

My use case for this is an embedded Elasticsearch node that also stores data and performs indexing in the dropwizard service, without any clustering whatsoever.

It works for my case, but I don't know if Elasticsearch recommends this. I try to create a PR, still have to figure out how to make my integration generic enough.

from dropwizard-elasticsearch.

joschi avatar joschi commented on June 29, 2024

@msteinhoff Since clients and full-fledged Elasticsearch nodes are a different thing (and should be handled differently), I suggest creating a class similar to ManagedEsClient (ManagedEsNode maybe?) which takes its own configuration (EsNodeConfiguration maybe?) and creates a data-storing Elasticsearch node.

from dropwizard-elasticsearch.

msteinhoff avatar msteinhoff commented on June 29, 2024

Yep, thats exactly what I have done already.

But I am not sure why this project does not follow the config factory approach recommended by dropwizard. I now have a EsNodeFactory (similar to the DataSourceFactory) which can build() a ManagedEsNode instance.

from dropwizard-elasticsearch.

msteinhoff avatar msteinhoff commented on June 29, 2024

FYI:

I started adding my changes in a local clone last week but noticed that I still use ES 1.x in my project (and the customer has no plans to change that). This addon currently depends on ES 2.x and there seem to be breaking API changes between 1.x and 2.x. So while I can add my changes, they won't do much for me.

Besides that, Elastic dropped support for embedded mode: https://www.elastic.co/blog/elasticsearch-the-server

With that in mind, I'll close this issue.

If someone wants to use my code, feel free to send me a mail.

from dropwizard-elasticsearch.

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.