问题
I've successfully installed the elasticsearch head plugin on crate and can access its web UI but it fails to connect. I'd like to be able to use it to visualize the data in the underlying elasticsearch store. Is there a a way to access the elasticsearch API directly so that head can work?
回答1:
You will need to enable the API which is done inside the crate.yml
file. And the setting to change is:
es.api.enabled: true
However, Elasticsearch Plugins may not work out of the box because Crate and Elasticsearch aren't binary compatible (you will probably have to modify the namespaces and imports). Elasticsearch has a shading step in their maven configuration so the elasticsearch jar contains different namespaces then Crate does (because Crate doesn't use shading).
来源:https://stackoverflow.com/questions/29836683/where-are-the-elasticsearch-apis-exposed-when-running-crate