I have created a cluster (on 18 hosts) using
/solr/solr-8.4.0/bin/solr start
I have three zookeeper instances, they are listed in solr.in.sh
ZK_HOST="host1:2181,host2:2181,host3:2181/MyRoot"
I have set JAVA_HOME
I have set SOLR_PORT

I have uploaded my configs to zookeeper

I have 6 collections I want for my cluster, all the configs are in zookeeper

I create my collections as follows:

for c in collection1 collection2 collection3 collection4 collection5
collection6;

do curl "
http://localhost:1080/solr/admin/collections?action=CREATE&name=$c&numShards=2&replicationFactor=3&collection.configName=$c&autoAddReplicas=true
";

done


All create commands show success in the response.


However, when I try to query a collection (there is no data in the
collection, but I shouldn't get an error) I get


curl -k 'http://localhost:1080/solr/collection1/query?q=*:*'

{

  "responseHeader":{

    "zkConnected":true,

    "status":500,

    "QTime":3,

    "params":{

      "q":"*:*",

      "_forwardedCount":"1"}},

  "error":{

    "metadata":[

      "error-class","org.apache.solr.common.SolrException",

      "root-error-class","java.util.concurrent.TimeoutException"],

    "msg":"org.apache.solr.client.solrj.SolrServerException: Timeout
occured while waiting response from server at:
http://host1:1080/solr/collection1_shard2_replica_n10/query";,

    "trace":"org.apache.solr.common.SolrException:
org.apache.solr.client.solrj.SolrServerException: Timeout occured while
waiting response from server at:
http://host1:1080/solr/collection1_shard2_replica_n10/query\n\tat
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:443)\n\tat
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:211)\n\tat
org.apache.solr.core.SolrCore.execute(SolrCore.java:2596)\n\tat
org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:799)\n\tat
org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:578)\n\tat
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:419)\n\tat
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:351)\n\tat
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602)\n\tat
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)\n\tat
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)\n\tat
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)\n\tat
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1711)\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)\n\tat
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1347)\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)\n\tat
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)\n\tat
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1678)\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)\n\tat
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1249)\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)\n\tat
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)\n\tat
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:152)\n\tat
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\n\tat
org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)\n\tat
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\n\tat
org.eclipse.jetty.server.Server.handle(Server.java:505)\n\tat
org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)\n\tat
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)\n\tat
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)\n\tat
org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)\n\tat
org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)\n\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)\n\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)\n\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)\n\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)\n\tat
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)\n\tat
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:781)\n\tat
org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:917)\n\tat
java.base/java.lang.Thread.run(Thread.java:832)\nCaused by:
org.apache.solr.client.solrj.SolrServerException: Timeout occured while
waiting response from server at:
http://host1:1080/solr/collection1_shard2_replica_n10/query\n\tat
org.apache.solr.client.solrj.impl.Http2SolrClient.request(Http2SolrClient.java:408)\n\tat
org.apache.solr.client.solrj.impl.Http2SolrClient.request(Http2SolrClient.java:754)\n\tat
org.apache.solr.client.solrj.impl.LBSolrClient.doRequest(LBSolrClient.java:368)\n\tat
org.apache.solr.client.solrj.impl.LBSolrClient.request(LBSolrClient.java:296)\n\tat
org.apache.solr.handler.component.HttpShardHandlerFactory.makeLoadBalancedRequest(HttpShardHandlerFactory.java:372)\n\tat
org.apache.solr.handler.component.HttpShardHandler.lambda$submit$0(HttpShardHandler.java:197)\n\tat
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)\n\tat
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat
com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:181)\n\tat
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:210)\n\tat
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)\n\tat
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)\n\t...
1 more\nCaused by: java.util.concurrent.TimeoutException\n\tat
org.eclipse.jetty.client.util.InputStreamResponseListener.get(InputStreamResponseListener.java:216)\n\tat
org.apache.solr.client.solrj.impl.Http2SolrClient.request(Http2SolrClient.java:399)\n\t...
13 more\n",

    "code":500}}


Why am I getting these errors? Thanks

Reply via email to