This is what we have in solr.xml. 

<solr persistent="true">
  <cores adminPath="/admin/cores" defaultCoreName="collection1" host="${host:}" 
hostPort="${jetty.port:8983}" hostContext="${hostContext:solr}" 
zkClientTimeout="${zkClientTimeout:15000}">
    <core name="collection1" instanceDir="collection1" 
dataDir="${solr.data.dir:}" shard="${shard:}" />
  </cores>
</solr>


We use one solr.xml and pass dataDir, shard as java system property. (e.g.: 
-Dsolr.data.dir=$HOME/solr_data/solr6 
-Dsolr.ulog.dir=$HOME/solr_data/solr6_tranlog -DnumShards=5 -Dshard=shard1) 


-----Original Message-----
From: Shawn Heisey [mailto:s...@elyograg.org] 
Sent: Friday, June 21, 2013 4:45 PM
To: solr-user@lucene.apache.org
Subject: Re: SPLITSHARD throws error

On 6/21/2013 2:26 PM, Joshi, Shital wrote:
> Hi,
>
> We have 5 shards with replication factor 2 (total 10 jvm instances). Our 
> shards are named (shardid) shard1,shard2,shard3,shar4 and shar5 and 
> collection name is collection1. When we execute this command:
>
> curl --proxy '' 
> "http://$HOST_NAME:8983/solr/admin/collections?action=SPLITSHARD&collection=collection1&shard=shard1";
>
> We get this error:
>
> <lst name="failure">
>       
> <str>org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
>  CREATEing SolrCore 'collection1_shard1_0_replica1': Core with same data dir 
> 'collection1' already exists.</str>

What's in your solr.xml file?  Except for the shard names, is the 
solr.xml from your other server(s) radically different?

Thanks,
Shawn

Reply via email to