On 9/9/2011 6:54 PM, Pulkit Singhal wrote:
> Thanks Again.
> 
> Another question:
> 
> My solr.xml has:
>   <cores adminPath="/admin/cores" defaultCoreName="master1">
>     <core name="master1" instanceDir="." shard="shard1" collection="myconf"/>
>   </cores>
> 
> And I omitted -Dcollection.configName=myconf from the startup command
> because I felt that specifying collection="myconf" should take care of
> that:
> cd /trunk/solr/example
> java -Dbootstrap_confdir=./solr/conf -Dslave=disabled -DzkRun -jar start.jar

With this you are telling ZK to bootstrap a collection with content of specific
files, but you don't tell what collection that should be.

Hence you want collection.configName parameter, and you want
solr.xml to reference the same name in 'collection' attribute for the cores,
so that SolrCloud knows where to pull configuration for that core from.


Reply via email to