启动 elasticsearch时报错 java.lang.IllegalStateException: Could not load plugin descriptor for plugin xxx
java.lang.IllegalStateException: Could not load plugin descriptor for plugin directory [ik-analyzer]一.出错场景1.在安装了elasticsearch后2.将elasticsearch-analysis-ik-6.2.4.zip放入plugins目录下后3../elasticsearch启动 ela
·
java.lang.IllegalStateException: Could not load plugin descriptor for plugin directory [ik-analyzer]
一.出错场景
1.在安装了elasticsearch后
2.将elasticsearch-analysis-ik-6.2.4.zip放入plugins目录下后
3../elasticsearch
启动 elasticsearch时报错
二.分析原因
1.首先,我没有使用root用户进行操作,已经创建了用户。而且从错误上看也不是run as root错误
2.其次,我在执行解压unzip elasticsearch-analysis-ik-6.2.4.zip -d ik-analyzer别名
且重命名了解压后的文件名
3.最后也删除了压缩包,以防找不到解压后的ik-analyzer文件,最终还是出现了下面错误
三.解决
原来是我安装的elasticsearch是6.3.0版本,而elasticsearch-analysis-ik是6.2.4版本。重新换了版本后。再次解压,启动./elasticsearch
附带elasticsearch压缩包资料
链接:https://pan.baidu.com/s/11YjEgqqD4nRGQ4c_1lwMsw
提取码:bvth
在浏览器输入ip(elasticsearch服务期地址+9200端口)回显,则启动成功
{
"name" : "8zrEb-p",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "4MZi9_8nQJaroL8PFmk3bg",
"version" : {
"number" : "6.3.0",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "424e937",
"build_date" : "2018-06-11T23:38:03.357887Z",
"build_snapshot" : false,
"lucene_version" : "7.3.1",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}
更多推荐
所有评论(0)