2014-10-09 82 views
0

我们添加一个文件在使用Solr的云服务器增加一个文件我得到以下异常如何使用Solr的云服务器

60 [main] INFO org.apache.solr.common.cloud.ConnectionManager - Waiting for client to connect to ZooKeeper 
65 [main-SendThread(jmajeed.ibsorb.com:8982)] INFO org.apache.zookeeper.ClientCnxn - Opening socket connection to server jmajeed.ibsorb.com/192.168.70.91:8982. Will not attempt to authenticate using SASL (unknown error) 
69 [main-SendThread(jmajeed.ibsorb.com:8982)] INFO org.apache.zookeeper.ClientCnxn - Socket connection established to jmajeed.ibsorb.com/192.168.70.91:8982, initiating session 
Exception in thread "main" java.lang.RuntimeException: java.util.concurrent.TimeoutException: Could not connect to ZooKeeper 192.168.70.91:8982/#/hotelcontent within 10000 ms 

是否有人有任何想法,为什么发生这种情况?

谢谢。

+0

PLZ更新问题,Solr的版本,solrconfig.xml中,solr.xml – Mysterion 2014-10-09 12:44:55

+0

因为我们的动物园管理员客户端连接的这个问题。你就不得不提到像solrServer =新CloudSolrServer(“动物园管理员客户端地址); solrServer.setDefaultCollection ( “hotelcontent”); – 2014-10-10 11:05:32

回答

0

让solr节点的默认配置受到干扰,因为默认情况下,如果您未指定群集中的第一个节点将在8983端口中启动的端口,请首先检查此端口。如果这不是问题,则通过访问solr云的管理界面来检查群集是否已启动。然后通过单击云选项卡查看群集中的所有分片是否处于活动状态。

如果一切正常,仍然面临上述问题,那么你是否试图访问远程solr云服务器,这是防火墙问题。你CONFIGS