无法创建集合“techproducts”,原因是:创建集合时底层核心创建失败:techproducts

问题描述 投票:0回答:2

我刚刚开始使用官方文档学习 solr,在第一个练习“索引 Techproducts 示例数据”期间,由于以下错误,我失败了:“无法创建集合‘techproducts’,因为:创建集合时底层核心创建失败:techproducts”。

我尝试将java版本从13更改为8,但没有帮助。

这里是文档链接:https://lucene.apache.org/solr/guide/8_5/solr-tutorial.html#exercise-1

来自 solr 管理控制台的 Stacktrace

Collection: techproducts operation: create failed:org.apache.solr.common.SolrException: Underlying core creation failed while creating collection: techproducts
    at org.apache.solr.cloud.api.collections.CreateCollectionCmd.call(CreateCollectionCmd.java:304)
    at org.apache.solr.cloud.api.collections.OverseerCollectionMessageHandler.processMessage(OverseerCollectionMessageHandler.java:263)
    at org.apache.solr.cloud.OverseerTaskProcessor$Runner.run(OverseerTaskProcessor.java:504)
    at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:210)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
solr solrcloud
2个回答
3
投票

我在关注 Solr 时也遇到过类似的情况 官方教程如下

➜  solr-8.7.0 ERROR: Failed to create collection 'techproducts' due to: Underlying core creation failed while creating collection: techproducts

问题解决了我关闭VPN的问题。我猜VPN路由可能以某种方式搞乱了solr的localhost设置。


1
投票

我也有同样的底层核心创建失败...错误。使用 Java 11、Windows 10。

日志文件是 ${solr-home} xampl

© www.soinside.com 2019 - 2024. All rights reserved.