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

使用 8.12.0 版本,启动 es 提示错误:Cannot read field "featureMap" because "model" is null #1

Open
uyoufu opened this issue Apr 3, 2024 · 0 comments

Comments

@uyoufu
Copy link

uyoufu commented Apr 3, 2024

使用 8.12.0 版本,安装这个插件后,启动报错:

{
    "@timestamp": "2024-04-03T07:42:23.974Z",
    "log.level": "ERROR",
    "message": "error adding index template [elastic-connectors-mappings] for [enterprise_search]",
    "ecs.version": "1.2.0",
    "service.name": "ES_ECS",
    "event.dataset": "elasticsearch.server",
    "process.thread.name": "elasticsearch[69fc55c52561][masterService#updateTask][T#1]",
    "log.logger": "org.elasticsearch.xpack.core.template.IndexTemplateRegistry",
    "elasticsearch.cluster.uuid": "z0D9w1SARWWS_Mr5AhqVaA",
    "elasticsearch.node.id": "t34QTLURQ0GU3u8uPHrr9Q",
    "elasticsearch.node.name": "69fc55c52561",
    "elasticsearch.cluster.name": "elasticsearch",
    "error.type": "java.lang.NullPointerException",
    "error.message": "Cannot read field \"featureMap\" because \"model\" is null",
    "error.stack_trace": "java.lang.NullPointerException: Cannot read field \"featureMap\" because \"model\" is null\n\tat com.hankcs.hanlp.model.perceptron.PerceptronTagger.<init>(PerceptronTagger.java:35)\n\tat com.hankcs.hanlp.model.perceptron.PerceptronSegmenter.<init>(PerceptronSegmenter.java:40)\n\tat com.hankcs.hanlp.model.perceptron.PerceptronLexicalAnalyzer.<init>(PerceptronLexicalAnalyzer.java:47)\n\tat com.hankcs.lucene.HanLPNLPAnalyzer.lambda$createComponents$0(HanLPNLPAnalyzer.java:40)\n\tat java.base/java.security.AccessController.doPrivileged(AccessController.java:319)\n\tat com.hankcs.lucene.HanLPNLPAnalyzer.createComponents(HanLPNLPAnalyzer.java:36)\n\tat [email protected]/org.apache.lucene.analysis.AnalyzerWrapper.createComponents(AnalyzerWrapper.java:120)\n\tat [email protected]/org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:193)\n\tat [email protected]/org.elasticsearch.index.analysis.AnalysisRegistry.checkVersions(AnalysisRegistry.java:769)\n\tat [email protected]/org.elasticsearch.index.analysis.AnalysisRegistry.produceAnalyzer(AnalysisRegistry.java:732)\n\tat [email protected]/org.elasticsearch.index.analysis.AnalysisRegistry.build(AnalysisRegistry.java:615)\n\tat [email protected]/org.elasticsearch.index.analysis.AnalysisRegistry.build(AnalysisRegistry.java:213)\n\tat [email protected]/org.elasticsearch.index.IndexModule.newIndexService(IndexModule.java:511)\n\tat [email protected]/org.elasticsearch.indices.IndicesService.createIndexService(IndicesService.java:754)\n\tat [email protected]/org.elasticsearch.indices.IndicesService.createIndex(IndicesService.java:646)\n\tat [email protected]/org.elasticsearch.cluster.metadata.MetadataIndexTemplateService.validateTemplate(MetadataIndexTemplateService.java:1808)\n\tat [email protected]/org.elasticsearch.cluster.metadata.MetadataIndexTemplateService.addComponentTemplate(MetadataIndexTemplateService.java:429)\n\tat [email protected]/org.elasticsearch.cluster.metadata.MetadataIndexTemplateService$3.execute(MetadataIndexTemplateService.java:347)\n\tat [email protected]/org.elasticsearch.cluster.metadata.MetadataIndexTemplateService$1.executeTask(MetadataIndexTemplateService.java:253)\n\tat [email protected]/org.elasticsearch.cluster.metadata.MetadataIndexTemplateService$1.executeTask(MetadataIndexTemplateService.java:250)\n\tat [email protected]/org.elasticsearch.cluster.SimpleBatchedExecutor.execute(SimpleBatchedExecutor.java:70)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService.innerExecuteTasks(MasterService.java:1039)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:1004)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService.executeAndPublishBatch(MasterService.java:232)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.lambda$run$2(MasterService.java:1626)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:386)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$BatchingTaskQueue$Processor.run(MasterService.java:1623)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.lambda$doRun$0(MasterService.java:1237)\n\tat [email protected]/org.elasticsearch.action.ActionListener.run(ActionListener.java:386)\n\tat [email protected]/org.elasticsearch.cluster.service.MasterService$5.doRun(MasterService.java:1216)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1583)\n"
}
@uyoufu uyoufu changed the title 使用 8.12.0 版本,启动 es 提示错误:Cannot read field "featureMap" because \"model\" is null 使用 8.12.0 版本,启动 es 提示错误:Cannot read field "featureMap" because "model" is null Apr 3, 2024
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

1 participant