Coin163

No live SolrServers available to handle this request

2016-05-09by coin, 次阅读
org.apache.solr.client.solrj.SolrServerException: No live SolrServers available to handle this request:[http://192.168.0.2:8983/solr/test, http://192.168.0.3:8983/solr/test, http://192.168.0.4:8983/solr/test]
	at org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:352)
	at org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:1100)
	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:871)
	at org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:807)
	at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:150)
	at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:975)
	at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:991)
Caused by: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://192.168.0.2:8983/solr/test: Expected mime type application/octet-stream but got text/html. <html>

主要是在测试solrcloud时没有配置自己设置的requestHandler。
这样的错误一般是配置错误,或者操作的core核心不存在,或者没有配置对应的handler。都是路径或者用法上的问题。
------分隔线----------------------------