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

在docker里面手动解压zip文件到plugins里面,报核心词典加载失败 #133

Open
xplx opened this issue Mar 8, 2022 · 1 comment

Comments

@xplx
Copy link

xplx commented Mar 8, 2022

{"type": "server", "timestamp": "2022-03-08T03:01:52,598Z", "level": "WARN", "component": "stderr", "cluster.name": "docker-cluster", "node.name": "d8e75d6e3bf1", "message": "WARNING: 读取/usr/share/elasticsearch/plugins/analysis-hanlp/data/dictionary/CoreNatureDictionary.mini.txt.bin时发生异常java.io.FileNotFoundException: /usr/share/elasticsearch/plugins/analysis-hanlp/data/dictionary/CoreNatureDictionary.mini.txt.bin (No such file or directory)", "cluster.uuid": "Wn739gBOS320n8KRMw9Alg", "node.id": "lVu1pYbcT0OA59Z6jrCpcA" }
{"type": "server", "timestamp": "2022-03-08T03:01:53,097Z", "level": "WARN", "component": "stderr", "cluster.name": "docker-cluster", "node.name": "d8e75d6e3bf1", "message": "Mar 08, 2022 3:01:53 AM com.hankcs.hanlp.dictionary.CoreDictionary load", "cluster.uuid": "Wn739gBOS320n8KRMw9Alg", "node.id": "lVu1pYbcT0OA59Z6jrCpcA" }
{"type": "server", "timestamp": "2022-03-08T03:01:53,097Z", "level": "WARN", "component": "stderr", "cluster.name": "docker-cluster", "node.name": "d8e75d6e3bf1", "message": "WARNING: 保存失败java.io.FileNotFoundException: /usr/share/elasticsearch/plugins/analysis-hanlp/data/dictionary/CoreNatureDictionary.mini.txt.bin (Permission denied)", "cluster.uuid": "Wn739gBOS320n8KRMw9Alg", "node.id": "lVu1pYbcT0OA59Z6jrCpcA" }
{"type": "server", "timestamp": "2022-03-08T03:01:53,107Z", "level": "ERROR", "component": "o.e.b.ElasticsearchUncaughtExceptionHandler", "cluster.name": "docker-cluster", "node.name": "d8e75d6e3bf1", "message": "fatal error in thread [elasticsearch[d8e75d6e3bf1][clusterApplierService#updateTask][T#1]], exiting", "cluster.uuid": "Wn739gBOS320n8KRMw9Alg", "node.id": "lVu1pYbcT0OA59Z6jrCpcA" ,

核心词典/usr/share/elasticsearch/plugins/analysis-hanlp/data/dictionary/CoreNatureDictionary.mini.txt加载失败。
请问下,这个要怎么解决?

@uxawseny
Copy link

uxawseny commented Jan 8, 2024

看你的日志中有”(Permission denied)“提示,建议进入elasticsearch docker容器的/usr/share/elasticsearch/plugins目录,执行
chmod -R 777 *
给插件所有文件读写权限放开

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