简体   繁体   English

尝试使用tomcat对solr实例执行完全导入

[英]trying to perform full import to a solr instance using tomcat

I'm trying to create a new solr instance and then perform a full import on it in a Spring application using Tomcat , however I keep getting: 我正在尝试创建一个新的solr实例,然后使用Tomcat在Spring应用程序中对其执行完全导入,但是我不断得到:

ERROR 1440 --- [nio-8080-exec-1] oasclient.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 ERROR 1440 --- [nio-8080-exec-1] oasclient.solrj.impl.CloudSolrClient:由于(510)org.apache.solr.common.SolrException:找不到集合请求(这里的集合名称)失败健康节点来处理请求

I think it's very possible that I'm not uploading the necessary configuration files right, but I am not sure. 我认为我很可能没有正确上传必要的配置文件,但我不确定。

Any suggestions would be appreciated. 任何建议,将不胜感激。

You have to have active Shards in your zookeeper's /clusterstate.json znode. 你必须在zookeeper的/clusterstate.json znode中拥有活动的Shards。

We can access this data from solr admin request on one of the solr node in the cloud: 我们可以在云中的solr节点上的solr管理请求中访问此数据:

curl "http://localhost:8983/solr/admin/collections?action=clusterstatus&wt=json&indent=on"

Your collection should be listed here. 您的收藏应列在此处。 All shards of your collection should have "state":"active" . 您收藏的所有碎片都应具有"state":"active"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM