Comments (5)
@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.
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.
@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.
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.
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)
- 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
- Add support for ES Client Plugins
- Support for ElasticSearch v5 ? HOT 3
- 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.