iamazy / elasticsearch-sql

parse sql into elasticsearch dsl with antlr4
https://iamazy.github.io/elasticsearch-sql/
MIT License
339 stars 89 forks source link

es安装插件后报Cannot replace existing handler for [/_isql/_explain]错误 #62

Open suixindong opened 2 years ago

suixindong commented 2 years ago

es7.9.2 安装插件 ./bin/elasticsearch-plugin install https://github.com/iamazy/elasticsearch-sql/releases/download/7.9.2/elasticsearch-sql-plugin-v7.9.2.zip 再 plugins目录会生成一个isql文件夹,但是启动时如下报错: [2021-11-26T14:35:11,490][ERROR][o.e.b.Bootstrap ] [elasticsearch-230-t] Exception java.lang.IllegalArgumentException: Cannot replace existing handler for [/_isql/_explain] for method: POST at org.elasticsearch.rest.MethodHandlers.addMethods(MethodHandlers.java:52) ~[elasticsearch-7.9.2.jar:7.9.2]

iamazy commented 2 years ago

@suixindong 这个是因为发7.9.2的时候插件接口 GET/POST方法全写成了POST方式,现已重新发包,你再试下

suixindong commented 2 years ago

此问题已解决,十分感谢。 另外还有个使用jdbc开发时,连接集群地址+密码验证时的错误,我重新发个issues.