Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在ES 7.17.15版本中使用analysis-hanlp 7.10.2版本启动服务报错 #149

Open
DongYuLiu-Boss opened this issue Dec 9, 2023 · 1 comment

Comments

@DongYuLiu-Boss
Copy link

启动会报错
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: plugin policy [D:\search\7.17.15\elasticsearch-7.17.15\plugins\analysis-hanlp\plugin-security.policy] contains illegal permission ("java.io.FilePermission" "D:/search/7.17.15/elasticsearch-7.17.15/plugins/analysis-hanlp/data/-" "read,write,delete") in global grant

当把plugin-security.policy文件中的相关内容注释掉后,再启动,报另外的错
java.lang.IllegalStateException: failed to load plugin class [org.elasticsearch.plugin.analysis.hanlp.AnalysisHanLPPlugin]
Likely root cause: java.lang.ClassNotFoundException: org.elasticsearch.common.io.PathUtils

请问是版本兼容问题嘛?该怎么解决呢?

@deauss2017
Copy link

我也遇到了同样问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants