gpt4 book ai didi

ubuntu - 在 localhost 上配置 apache solr 搜索会出现错误 : HTTP ERROR 500

转载 作者:行者123 更新时间:2023-12-04 19:03:29 25 4
gpt4 key购买 nike

当我尝试访问 localhost:8983/solr 时,它显示以下错误。

HTTP ERROR 500


Problem accessing /solr/admin. Reason:

{msg=SolrCore 'collection1' is not available due to init failure: Could not load config file /home/ahmad/solr-4.6.0/example/solr/collection1/solrconfig.xml,trace=org.apache.solr.common.SolrException: SolrCore 'collection1' is not available due to init failure: Could not load config file /home/ahmad/solr-4.6.0/example/solr/collection1/solrconfig.xml
at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:818)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:297)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:197)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:368)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:744)

Caused by: org.apache.solr.common.SolrException: Could not load config file /home/ahmad/solr-4.6.0/example/solr/collection1/solrconfig.xml
at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:525)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:592)
at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:271)
at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:263)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
... 1 more

Caused by: org.apache.solr.common.SolrException: solrconfig.xml contains more than one value for config path: indexConfig/useCompoundFile
at org.apache.solr.core.Config.getNode(Config.java:251)
at org.apache.solr.core.Config.getNode(Config.java:228)
at org.apache.solr.core.Config.getVal(Config.java:362)
at org.apache.solr.core.Config.getBool(Config.java:406)
at org.apache.solr.update.SolrIndexConfig.<init>(SolrIndexConfig.java:139)
at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:157)
at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:522)
... 9 more
,code=500}

Powered by Jetty://

最佳答案

SolrException: solrconfig.xml contains more than one value for config path: indexConfig/useCompoundFile
此错误表示您多次出现 indexConfig > useCompoundFile solrconfig.xml 中的值(即 compoundFileindexConfig 下多次出现)

只需删除这些值,使它们在整个文件中只出现一次

这是一个 change that appears in SOLR-4.5.0

关于ubuntu - 在 localhost 上配置 apache solr 搜索会出现错误 : HTTP ERROR 500,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21304285/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com