我通过复制默认的collection1文件夹添加了一个新核心,将该文件夹重命名为" core_name"更改了core.properties和solorconfig.xml中的核心名称。我错误地使用?action = RELOAD& core = core0重新加载了核心。然后我使用?action = RELOAD& core = core_name重新加载它。管理页面出现了,我看到了新添加的核心,但是我之前尝试重新加载的core0有n个错误。然后我卸载了核心" core_name"我重新加载。我收到了以下错误。请帮助!!!
HTTP ERROR 500
访问/ solr /时遇到问题。原因是:
{msg=SolrCore 'collection1' is not available due to init failure: No such core: collection1,trace=org.apache.solr.common.SolrException: SolrCore 'collection1' is not available due to init failure: No such core: collection1
at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:860)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:251)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:158)
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:533)
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:701)
引起:org.apache.solr.common.SolrException:没有这样的核心:collection1 在org.apache.solr.core.CoreContainer.reload(CoreContainer.java:740) at org.apache.solr.handler.admin.CoreAdminHandler.handleReloadAction(CoreAdminHandler.java:769) 在org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:171) 在org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) at org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:611) 在org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:209) ......还有26个 ,代码= 500} 由Jetty提供://
答案 0 :(得分:1)
我之前在SOLR 4.4.0上遇到过类似的问题。删除未找到的核心文件夹。在你的情况下'Collection1'。然后重启SOLR。如果你不重新启动它,SOLR可能仍然会给你这个错误。
这应该有效。