Skip to content
This repository has been archived by the owner on May 18, 2020. It is now read-only.

Can not use secure plugins with embedded-elasticsearch #17

Open
pacer11 opened this issue Apr 25, 2017 · 0 comments
Open

Can not use secure plugins with embedded-elasticsearch #17

pacer11 opened this issue Apr 25, 2017 · 0 comments

Comments

@pacer11
Copy link

pacer11 commented Apr 25, 2017

When installing plugins that require REST Calls with HTTPS vs HTTP the ElasticRestClient.java
class does not accomodate for such functionality.

private String url(String path) {
    return "http://localhost:" + elasticsearchHttpPort + path;

}

It would be ideal if both the protocol and the host could be configurable with a default that way the caller could be provided with the options of choice. The "localhost" reference could probably be replaced with the elasticsearch.yaml's "http.host" value and a custom property could be set to allow for https vs http.

The workaround for me right now is to eliminate using the helper methods to create indices (since these calls use the ElasticRestClient class to perform it's functions) and strictly use the TransportClient Java API.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant