【发布时间】:2014-10-16 00:12:48
【问题描述】:
使用 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
有人知道为什么会这样吗?
谢谢。
【问题讨论】:
-
请用您的配置、solr 版本、solrconfig.xml、solr.xml 更新问题
-
这个问题是因为我们的 Zookeeper 客户端连接。你必须提到像 solrServer = new CloudSolrServer("zookeeper client address); solrServer.setDefaultCollection("hotelcontent");
标签: java solr apache-zookeeper solrcloud