我正在尝试创建一个新的 solr
实例,然后使用 Tomcat
在 Spring 应用程序中对其执行完全导入,但我不断收到:
ERROR 1440 --- [nio-8080-exec-1] o.a.s.client.solrj.impl.CloudSolrClient : Request to collection (collection name here) failed due to (510) org.apache.solr.common.SolrException: Could not find a healthy node to handle the request
我认为我很可能没有正确上传必要的配置文件,但我不确定。
如有任何建议,我们将不胜感激。
最佳答案
您的 Zookeeper 的/clusterstate.json znode 中必须有 Activity 分片。
我们可以通过云中 solr 节点之一上的 solr 管理请求访问此数据:
curl "http://localhost:8983/solr/admin/collections?action=clusterstatus&wt=json&indent=on"
您的 Collection 应该列在此处。您集合中的所有分片都应具有 "state":"active"
。
关于java - 尝试使用 tomcat 对 solr 实例执行完全导入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34008835/