SolrCloud - 分片后

时间:2015-12-15 10:08:18

标签: solr apache-zookeeper solrcloud

我使用异步请求ID在3个分片中的2个分片上执行分片分割。 尝试为分割的分片附加副本时,分片分割任务失败,但是我发现两个分支分割的分片,文档被正确分割(两个分片的总numFound =父分片的总numFound)

因此,我继续手动更改clusterstate.json,已拆分的分片已从构造更改为活动状态,并且父分片已从活动更改为非活动状态。我还手动为分割的分片附加副本,然后通过卸载父分片核心来删除父分片。

这里出现问题,当我在SolrCloud中发出提交时,父级返回solr云云图和clusterstate.json,节点状态= down& shard status = active。

1)我再次启动父分片节点并再次尝试使用另一个卸载核心,但每次我发出一个提交时,它将返回到图形并且clustertate with node status = down& shard status = active。

2)所以我的第二次尝试是使用 / admin / collections?action = DELETESHARD

删除带有集合API的分片

我收到如下错误:

  

org.apache.solr.client.solrj.impl.HttpSolrServer $ RemoteSolrException:无法>卸载不存在的核心

     

操作删除导致异常:   org.apache.solr.common.SolrException:无法完全删除集合:>候选shard:candidates_shard2 at   org.apache.solr.handler.admin.CollectionsHandler.handleResponse(CollectionsHandler.java:364)位于org.apache.solr.handler的org.apache.solr.handler.admin.CollectionsHandler.handleResponse(CollectionsHandler.java:320)。 admin.CollectionsHandler.handleDeleteShardAction(CollectionsHandler.java:563)在org.apache.solr.handler.admin.CollectionsHandler.handleRequestBody(CollectionsHandler.java:176)在org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java: 135)在org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:729)在org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:267)在org.apache.solr.servlet.SolrDispatchFilter .doFilter(SolrDispatchFilter.java:207)在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)在有机apache.catalina.core.StandardWrapperValve.invoke(Standa rdWrapperValve.java:220)在org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)在org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:612)在org.apache.catalina .core.StandardHostValve.invoke(StandardHostValve.java:170)在org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)在org.apache.catalina.valves.AutoLoginValve.invoke(AutoLoginValve.java:67 )在org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:304)在org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:82)在org.apache.catalina.valves.RemoteIpValve。在org.apache上的org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)调用(RemoteIpValve.java:683) .catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Proces sor.java:1070)org.apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process(AbstractProtocol.java:611)at org.apache.tomcat.util.net.JIoEndpoint $ SocketProcessor.run(JIoEndpoint.java:316)at java .util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)at org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run (TaskThread.java:61)在java.lang.Thread.run(Thread.java:745)

3)我的第三次尝试是使用集合API删除副本 admin / collections?action = DELETEREPLICA

我收到如下错误:

  

org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:无法删除副本

     

org.apache.solr.common.SolrException:无法删除org.apache.solr上org.apache.solr.handler.admin.CollectionsHandler.handleResponse(CollectionsHandler.java:364)中的副本:candidates / candidates_shard2 / core_node48 .handler.admin.CollectionsHandler.handleResponse(CollectionsHandler.java:320)在org.apache.solr.handler.admin.CollectionsHandler.handleRemoveReplica(CollectionsHandler.java:495)在org.apache.solr.handler.admin.CollectionsHandler.handleRequestBody (CollectionsHandler.java:184)在org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)在org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:729)在org.apache。 solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:267)atg.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 241)在org.apache.catalina.core.ApplicationFilterCh ain.doFilter(ApplicationFilterChain.java:208)在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)在org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)在组织.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:612)在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)在org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve .java:103)org.apache.catalina.valves.AutoLoginValve.invoke(AutoLoginValve.java:67)位于org.apache.catalina的org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:304)。 valves.RemoteAddrValve.invoke(RemoteAddrValve.java:82)在org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:683)在org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)at org.apache.catalina.connector.CoyoteAdapter.serv ice(CoyoteAdapter.java:421)org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)atg.apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process(AbstractProtocol.java:611)at org.apache .tomcat.util.net.JIoEndpoint $ SocketProcessor.run(JIoEndpoint.java:314)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor) .java:615)atg.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61)at java.lang.Thread.run(Thread.java:745)

如何从群集中删除该2个不需要的父分片?

0 个答案:

没有答案