I think that core admin commands may not work with CloudSolrServer at the moment. There is a JIRA issue for it I think.
For now, I'd use the HTTP imp and point at the node you want to work with or reload with the collections api. - Mark On Nov 22, 2012, at 12:17 PM, joe.cohe...@gmail.com wrote: > Hi, > I'm using solr-4.0.0 > I'm trying to reload all the cores of a given collection in my solr cloud. > I use it like this: > > CloudSolrServer server = new CloudSolrServer (zkserver:port); > server.setDefaultCollection("collection1"); > CoreAdminRequest req = new CoreAdminRequest(); > req.reloadCore("collection1", server) > > This throws an Exception telling me that no live solr servers are availble, > listing the servers like this: > http://server/solr/collection1 > > Of course doing other tasks like adding documnets to the CloudSolrServer > above works fine. > Using reloadCore on a HttpSolrServer also works fine. > > Any know issue with CloudSolrServer and CoreAdminRequest ? > > > Note that I moved to solr-4.0.0 from solr-4.0.0-beta after trying the same > thing also failed, but with a different exception. > it failed saying cannot cast string to map in class ClusterState, in load() > method (line 300), because the key "range" gave some String value instead of > a map object. > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Reload-core-via-CoreAdminRequest-doesnt-work-with-solr-cloud-solrj-tp4021882.html > Sent from the Solr - User mailing list archive at Nabble.com.