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

启动报错找不到配置文件 #143

Open
DongYuLiu-Boss opened this issue Nov 28, 2022 · 1 comment
Open

启动报错找不到配置文件 #143

DongYuLiu-Boss opened this issue Nov 28, 2022 · 1 comment

Comments

@DongYuLiu-Boss
Copy link

我使用的版本是Tag V7.9.3,ES采用RPM包安装到Linux服务器中,启动服务报错如下:
11月 29 00:04:56 VM-16-3-centos systemd-entrypoint[7568]: at java.base/java.security.AccessController.checkPermission(AccessController.java:1036)
11月 29 00:04:56 VM-16-3-centos systemd-entrypoint[7568]: at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:408)
11月 29 00:04:56 VM-16-3-centos systemd-entrypoint[7568]: at java.base/java.lang.SecurityManager.checkRead(SecurityManager.java:747)
11月 29 00:04:56 VM-16-3-centos systemd-entrypoint[7568]: at java.base/java.io.File.isFile(File.java:880)
11月 29 00:04:56 VM-16-3-centos systemd-entrypoint[7568]: at com.hankcs.hanlp.HanLP$Config.(HanLP.java:335)

@quanwuhui
Copy link

quanwuhui commented Mar 8, 2023

如果是linux rpm包安装的可以参照如下步骤。

  1. /etc/sysconfig/elasticsearch文件加配置项 HANLP_ROOT=/usr/share/elasticsearch/plugins/analysis-hanlp/
  2. 修改目录权限,chown -R elasticsearch:elasticsearch /usr/share/elasticsearch/plugins/
  3. 将rpm包安装后配置文件目录默认的/etc/elasticsearch 移动到/usr/share/elasticsearch/config,并修改对应的/etc/sysconfig/elasticsearch、/usr/lib/systemd/system/elasticsearch.service里面的ES_COINIG_PATH为: /usr/share/elasticsearch/config
  4. systemctl daemon-reload 重新加载/usr/lib/systemd/system/elasticsearch.service

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