Git Product home page Git Product logo

Comments (3)

mattflax avatar mattflax commented on June 29, 2024 2

I've been looking into this, and while the transport client is a fairly trivial change, the node client is not.

In addition, changes to the way ES is built are making it difficult to test in a packaged Dropwizard application:

  • there's an explicit reliance on log4j2 which can't (as far as I can see) be overridden by adding slf4j bridging.
  • the Build class in ES now reads its build information from the Manifest file. When you build a single jar for your Dropwizard app, this information is lost, and the Node client complains that it can't be read.

As I say, the changes to the Transport client are fairly trivial, and seem to work as expected. My work so far is here, if anyone is interested: https://github.com/mattflax/dropwizard-elasticsearch/tree/elasticsearch-5.0

from dropwizard-elasticsearch.

genthalili avatar genthalili commented on June 29, 2024

+1

@mattflax thanks for your solution!

from dropwizard-elasticsearch.

mattflax avatar mattflax commented on June 29, 2024

I've ended up disabling the NodeClient completely - Elastic reckon you should run a local coordinating node, and use the TransportClient to communicate with that. You can still use the setting at this stage, but it will throw an error.

There's currently an error from log4j2 when starting the Dropwizard application - I can't figure out a way around that which doesn't break the Elasticsearch client classes (which rely specifically on log4j2).

Do let me know if you have advice on better approaches to this issue - the approach I've ended up with feels a bit ham-fisted, so better suggestions would be appreciated!

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.