[2016-08-20 19:18:40,930][INFO ][node ] [Morg] version[2.3.5], pid[31494], build[90f439f/2016-07-27T10:36:52Z] [2016-08-20 19:18:40,930][INFO ][node ] [Morg] initializing ... [2016-08-20 19:18:41,360][ERROR][bootstrap ] Exception java.lang.IllegalArgumentException: Plugin [analysis-ik] is incompatible with Elasticsearch [2.3.5]. Was designed for version [2.3.4] at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:118) at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:378) at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:128) at org.elasticsearch.node.Node.<init>(Node.java:158) at org.elasticsearch.node.Node.<init>(Node.java:140) at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143) at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178) at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270) at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
解决方案
cd /usr/share/elasticsearch/plugins/ik vim plugin-descriptor.properties elasticsearch.version=2.3.4 改为 elasticsearch.version=2.3.5
解决方案
root@netkiller /var/log/elasticsearch % /usr/share/elasticsearch/bin/elasticsearch-plugin list analysis-ik WARNING: plugin [analysis-ik] is incompatible with version [5.6.1]; was designed for version [5.5.2]
root@netkiller /var/log/elasticsearch % /usr/share/elasticsearch/bin/elasticsearch-plugin remove analysis-ik --purge -> removing [analysis-ik]...
手工安装 5.6.0 然后
vim /usr/share/elasticsearch/plugins/analysis-ik/plugin-descriptor.properties elasticsearch.version=5.5.2 改为 elasticsearch.version=5.6.1
date 各位为YYYY-MM-ddTHH:mm:ss,注意中间的字幕T
{"type":"date","format":"YYYY-MM-dd'T'HH:mm:ss.SSSZ"} curl -XPOST "http://localhost:9200/netkiller/news/" -d' { "content": "Hello World!", "CreateDate": "2009-11-15T12:12:12" }'
编辑 /etc/sysconfig/elasticsearch 配置文件
# Elasticsearch Java path JAVA_HOME=/srv/java
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。