I am getting a ClassCastException when i call Solr. My code is pretty
simple.

SolrServer mySolrServer = new CloudSolrServer(zookeeperHost);
((CloudSolrServer)mySolrServer).setDefaultCollection("manufacturer")
((CloudSolrServer)mySolrServer).connect()


The actual error is thrown on line 300 of ClusterState.java:
new ZkNodeProps(sliceMap.get(shardName))

It is trying to convert a String to a Map which causes the
ClassCastException.

My zookeepHost string is simply  "myHost:6200". My SolrCloud has 2 shards
over a single collection. And two instances are running. I also tried an
external Zookeeper with the same results.


-- 
*KEVIN OSBORN*
LEAD SOFTWARE ENGINEER
CNET Content Solutions
OFFICE 949.399.8714
CELL 949.310.4677      SKYPE osbornk
5 Park Plaza, Suite 600, Irvine, CA 92614
[image: CNET Content Solutions]

Reply via email to