You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Shanaka Munasinghe <sh...@virtusa.com> on 2014/12/16 04:44:19 UTC

SolrCloud Collection creation timeout

Hi All

Im using solrcloud 4.10.2 with zookeepr 3.4.6. there are 3 zk servers and 4 solr instances. deployed on weblogic 12c server. zookeeper and solr servers are running without any issue. all 3 zk servers are separate physical servers. i have tested this configuration in locally using virtual servers and its working fine. but in the production servers everytime im getting below timeout exception when issue any of the collection API commands. please help

command

http://<host>:<port>/solr/admin/collections?action=CREATE&name=en-collection&numShards=1&replicationFactor=4&collection.configName=conf_en<http://10.52.133.59:61011/solr/admin/collections?action=CREATE&name=en-collection&numShards=1&replicationFactor=4&collection.configName=conf_en>



Exception

null:org.apache.solr.common.SolrException: createcollection the collection time out:180s

       at org.apache.solr.handler.admin.CollectionsHandler.handleResponse(CollectionsHandler.java:368)

       at org.apache.solr.handler.admin.CollectionsHandler.handleResponse(CollectionsHandler.java:320)

       at org.apache.solr.handler.admin.CollectionsHandler.handleCreateAction(CollectionsHandler.java:486)

       at org.apache.solr.handler.admin.CollectionsHandler.handleRequestBody(CollectionsHandler.java:148)

       at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)

       at org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:729)

       at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:267)

       at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)

       at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

       at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3367)

       at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)

       at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

       at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

       at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)

       at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)

       at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)

       at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)

       at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)

       at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)

       at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)

       at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)


Thanks & Best Regards.
Shanaka Munasinghe


------------------------------------------------------------------------------------------------------------------------------
Virtusa was recently featured in Everest Group's PEAK Matrix for Banking Application Outsourcing,
Life Sciences IT Outsourcing and Healthcare Payer Industry IT Outsourcing,Forrester Research's 
report on major mid-sized offshore IT services vendors, 2013 Forbes List of 100 Best 
Public Companies In America with revenue less than $1B and won the 2013 Frost & Sullivan 
Customer Value Leadership Award for System Integration for CEM in Healthcare.

------------------------------------------------------------------------------------------------------------------------------
This message, including any attachments, contains confidential information
intended for a specific individual and purpose, and is intended for the addressee
only. Any unauthorized disclosure, use, dissemination, copying, or distribution of
this message or any of its attachments or the information contained in this e-mail,
or the taking of any action based on it, is strictly prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail and
delete this message.
---------------------------------------------------------------------------------------------

Re: SolrCloud Collection creation timeout

Posted by E S J <es...@gmail.com>.
Hi Shanaka,

Try out this,

http://<HOST>:<PORT>/solr/admin/collections?action=CREATE&name=<INS-NAME>&replicationFactor=<#
OF REPLICATION>&numShards=<# OF SHARDS>&collection.configName=<CONFIG
NAME>&maxShardsPerNode=<# OF MAX SHARDS>&wt=json&indent=2

ex :
http://solr1.internal:7070/solr/admin/collections?action=CREATE&name=c-ins&replicationFactor=4&numShards=4&collection.configName=default&maxShardsPerNode=4&wt=json&indent=2


If you keep getting SolrTime out , Try out creating Solr Admin and see you
can achieve same, If that's failing you have to connect to ZK server and
see It's connected to Solr correctly.
Have you register solr configurations with ZK  (using zkcli.sh)?

Thanks,
Shanaka J


On 16 December 2014 at 16:44, Shanaka Munasinghe <sh...@virtusa.com>
wrote:
>
> Hi All
>
> Im using solrcloud 4.10.2 with zookeepr 3.4.6. there are 3 zk servers and
> 4 solr instances. deployed on weblogic 12c server. zookeeper and solr
> servers are running without any issue. all 3 zk servers are separate
> physical servers. i have tested this configuration in locally using virtual
> servers and its working fine. but in the production servers everytime im
> getting below timeout exception when issue any of the collection API
> commands. please help
>
> command
>
> http://
> <host>:<port>/solr/admin/collections?action=CREATE&name=en-collection&numShards=1&replicationFactor=4&collection.configName=conf_en<
> http://10.52.133.59:61011/solr/admin/collections?action=CREATE&name=en-collection&numShards=1&replicationFactor=4&collection.configName=conf_en
> >
>
>
>
> Exception
>
> null:org.apache.solr.common.SolrException: createcollection the collection
> time out:180s
>
>        at
> org.apache.solr.handler.admin.CollectionsHandler.handleResponse(CollectionsHandler.java:368)
>
>        at
> org.apache.solr.handler.admin.CollectionsHandler.handleResponse(CollectionsHandler.java:320)
>
>        at
> org.apache.solr.handler.admin.CollectionsHandler.handleCreateAction(CollectionsHandler.java:486)
>
>        at
> org.apache.solr.handler.admin.CollectionsHandler.handleRequestBody(CollectionsHandler.java:148)
>
>        at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
>
>        at
> org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:729)
>
>        at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:267)
>
>        at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)
>
>        at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
>
>        at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3367)
>
>        at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)
>
>        at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
>
>        at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
>
>        at
> weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
>
>        at
> weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
>
>        at
> weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
>
>        at
> weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
>
>        at
> weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
>
>        at
> weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
>
>        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
>
>        at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
>
>
> Thanks & Best Regards.
> Shanaka Munasinghe
>
>
>
> ------------------------------------------------------------------------------------------------------------------------------
> Virtusa was recently featured in Everest Group's PEAK Matrix for Banking
> Application Outsourcing,
> Life Sciences IT Outsourcing and Healthcare Payer Industry IT
> Outsourcing,Forrester Research's
> report on major mid-sized offshore IT services vendors, 2013 Forbes List
> of 100 Best
> Public Companies In America with revenue less than $1B and won the 2013
> Frost & Sullivan
> Customer Value Leadership Award for System Integration for CEM in
> Healthcare.
>
>
> ------------------------------------------------------------------------------------------------------------------------------
> This message, including any attachments, contains confidential information
> intended for a specific individual and purpose, and is intended for the
> addressee
> only. Any unauthorized disclosure, use, dissemination, copying, or
> distribution of
> this message or any of its attachments or the information contained in
> this e-mail,
> or the taking of any action based on it, is strictly prohibited. If you
> are not the
> intended recipient, please notify the sender immediately by return e-mail
> and
> delete this message.
>
> ---------------------------------------------------------------------------------------------
>