-
Notifications
You must be signed in to change notification settings - Fork 226
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
手动解压hanlp插件到${ES_HOME}/plugins,需要将${hanlp_home}/config目录拷贝到${ES_HOME}/config/analysis_hanlp目录下 #95
Comments
是的,我使用的是7.2版本的ES和hanlp插件,存在同样的问题。 希望可以采用第二种的方法,方便ES的docker容器环境运行。 |
最好采用elasticsearch-install方式安装 |
@KennFalcon @jackeylu @guluo2016 |
我也是安装的7.10.2,在Debian上用安装包装的,碰到同样的问题。elasticsearch-plugin install analysis-hanlp安装是把插件配置文件装到了/etc/elasticsearch/analysis-hanlp目录下,而实际读取的时候却读的是/usr/share/elastcisearch/config/analysis-hanlp目录。 #补充,又观察了一下,日志里还是会周期性的报错:access denied ("java.io.FilePermission" "/usr/share/elastcisearch/config/analysis-hanlp/hanlp-properties" "read")。文件实际上是存在的,权限都设置成了777 #再补充,经反复测试, |
@lopaz 我根据你的描述又基于7.10.2自测了下,验证了几点:
|
也碰到同样的问题是 7.10.1(用es按照插件的方式安装) 最后创建软链,启动成功
|
问题
我通过解压hanlp zip包到plugins目录下的方式去安装该插件,安装后重启,发现报错如下:
通过分析发现,在加载hanlp插件的时候,是去${ES_HOME}/config目录下加载
hanlp.properties
和hanlp-remote.xml
文件,源代码如下:解决办法
第一种
将${hanlp_home}/config目录拷贝到${ES_HOME}/config/analysis_hanlp目录下,重启ES集群
第二种
修改代码,将加载hanlp配置文件的路径修改为${hanlp_home}/config
The text was updated successfully, but these errors were encountered: