java - Elasticsearch - Building and Installing plugins -
i utilize command ./plugin -i medcl/elasticsearch-analysis-ik/1.2.6
install plugin got error while installing plugin, reason:illegalargumentexception: plugin installation assumed site plugin, contains source code, aborting installation.
after searching, says should build plugin source. not familiar java
,official document not if ik analysis plugin (by medcl)
list under supported community
. how build source code , set complied file?
it has build source plugin not provide dist(final installable jar) file. plugin maven project. need not know java. maven dependency management , build tool. so,
how build?
download apache maven - http://maven.apache.org/download.cgi, extract archive file. include maven in scheme path variable -c:\<maven path>\maven-3.2.1\bin
go plugin directory root(lets root c:/es/elasticsearch-analysis-ik
) there pom.xml
file , execute command - mvn compile
this build project , generate jar file in c:/es/elasticsearch-analysis-ik/target
actual file need utilize in elasticsearch. how utilize in elastic search? file in local machine. can utilize below steps straight install plugin.
go elastic search folder.
execute command - bin\plugin --url file:////c:/es/elasticsearch-analysis-ik/target/filename.jar --install
just restart elasticsearch , tada have plugin , running.
java maven plugins elasticsearch
No comments:
Post a Comment