Where are the ElasticSearch APIs exposed when running Crate?

☆樱花仙子☆ 提交于 2020-01-02 09:27:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!