Hi,

I'm getting the error 'msg: "no servers hosting shard: " ' when trying to search on a freshly created SolrCloud instance with an embedded ZooKeeper and a single shard?

My solr.xml is as follows:

<solr>
  <cores adminPath="/admin/cores" >
        <core name="offerings" instanceDir="offerings" shard="1"/>
        <core name="vouchers" instanceDir="vouchers" shard="1"/>
<core name="temp_offerings" instanceDir="temp_offerings" shard="1"/>
        <core name="temp_vouchers" instanceDir="temp_vouchers" shard="1"/>
  </cores>
</solr>

And all the directories referenced in the solr.xml are present under the solr directory

I'm starting my SolrCloud with the following command:

java -Dbootstrap_confdir=./solr/offerings/conf -Dcollection.configName=myconf -DzkRun -DnumShards=1 -jar start.jar

Everything initialises fine, and I can see all of the schemas correctly via the admin console, but as soon as I execute a query I get the above error? I'm assuming I'm not telling Solr correctly that it is the only shard, but I am passing that as a JVM argument at startup?

Any thoughts would be most appreciated!

Best wishes,

Daniel



--
*Daniel Bryant | Software Development Consultant | www.tai-dev.co.uk <http://www.tai-dev.co.uk/>* daniel.bry...@tai-dev.co.uk <mailto:daniel.bry...@tai-dev.co.uk> | +44 (0) 7799406399 | Twitter: @taidevcouk <https://twitter.com/taidevcouk>

Reply via email to