Multicore master-slaver replication in Solr Cloud

2012-06-19 Thread fabio curti
Hi,
i tried to set a Multicore master-slaver replication in Solr Cloud found in
this post
http://pulkitsinghal.blogspot.it/2011/09/multicore-master-slave-replication-in.html
but
i get the following problem

SEVERE: Error while trying to recover.
org.apache.solr.client.solrj.SolrServerException: Server at
http://myserver:8983/solr was not found (404).
at
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:372)
at
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:182)
at
org.apache.solr.cloud.RecoveryStrategy.sendPrepRecoveryCmd(RecoveryStrategy.java:192)
at
org.apache.solr.cloud.RecoveryStrategy.doRecovery(RecoveryStrategy.java:303)
at org.apache.solr.cloud.RecoveryStrategy.run(RecoveryStrategy.java:213)
Jun 19, 2012 3:17:49 PM org.apache.solr.cloud.RecoveryStrategy doRecovery
SEVERE: Recovery failed - trying again...

The infrastructure will look like:

   - Solr-Instance-A
  - master1 (indexes changes for shard1)
  - slave1-master2 (replicates changes from shard2)
  - slave2-master2 (replicates changes from shard2)
   - Solr-Instance-B
  - master2 (indexes changes for shard2)
  - slave1-master1 (replicates changes from shard1)
  - slave2-master1 (replicates changes from shard1)


Any idea?


Re: Multicore master-slaver replication in Solr Cloud

2012-06-19 Thread Mark Miller

On Jun 19, 2012, at 9:59 AM, fabio curti wrote:

 Hi,
 i tried to set a Multicore master-slaver replication in Solr Cloud found in
 this post
 http://pulkitsinghal.blogspot.it/2011/09/multicore-master-slave-replication-in.html
 but
 i get the following problem
 
 SEVERE: Error while trying to recover.
 org.apache.solr.client.solrj.SolrServerException: Server at
 http://myserver:8983/solr was not found (404).
 at
 org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:372)
 at
 org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:182)
 at
 org.apache.solr.cloud.RecoveryStrategy.sendPrepRecoveryCmd(RecoveryStrategy.java:192)
 at
 org.apache.solr.cloud.RecoveryStrategy.doRecovery(RecoveryStrategy.java:303)
 at org.apache.solr.cloud.RecoveryStrategy.run(RecoveryStrategy.java:213)
 Jun 19, 2012 3:17:49 PM org.apache.solr.cloud.RecoveryStrategy doRecovery
 SEVERE: Recovery failed - trying again...
 
 The infrastructure will look like:
 
   - Solr-Instance-A
  - master1 (indexes changes for shard1)
  - slave1-master2 (replicates changes from shard2)
  - slave2-master2 (replicates changes from shard2)
   - Solr-Instance-B
  - master2 (indexes changes for shard2)
  - slave1-master1 (replicates changes from shard1)
  - slave2-master1 (replicates changes from shard1)
 
 
 Any idea?


You don't want to explicitly setup master - slave replication when using 
solrcloud. Just define an empty replication handler (and make sure you have 
some other required config) and the rest is automatic.

http://wiki.apache.org/solr/SolrCloud#Required_Config

- Mark Miller
lucidimagination.com