Comments (3)
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.
+1
@mattflax thanks for your solution!
from dropwizard-elasticsearch.
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)
- Maven dependency is wrong in documentation HOT 3
- install elasticsearch plugins
- Break of compatibility in EsClusterHealthCheck version 2.3 or above HOT 1
- How to access client in Resource request HOT 1
- Supply a sample of how to access the client from Tasks and Commands HOT 1
- Managed elasticsearch node instance? HOT 5
- Add support for ES Client Plugins
- Usage section is stale HOT 1
- Any documentation/tutorial available? HOT 2
- Got a warning java.net.UnknownHostException HOT 1
- oss-parent deprecated
- MasterNotDiscoveredException HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dropwizard-elasticsearch.