You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Lee Theobald <Le...@openobjects.com> on 2009/07/06 16:10:31 UTC

Replication In 1.4

Hi all,

I've been trying to get the replication working in my test version of Solr
(1.4) but I don't think I've got it right.  There doesn't seem to be any
errors but it doesn't seem to be working either.  I'm going to the
distribution admin page [1] and just getting a bit of text telling me "No
distribution info present".  I've tried with multiple cores (what I want but
perhaps isn't possible looking at the raised bugs) and a single core, both
give the same results.  Going to the replication status page [2] gives me an
OK.

I'm thinking I've missed a vital bit of configuration.  Is there anything on
this page [3] that is missing but I need?  For example, listeners in the
solrconfig.xml?  If so, could someone please give me an example.

Cheers for any input,
Lee

    [1] http://localhost:8080/solr/admin/distributiondump.jsp
    [2] http://localhost:8080/solr/replication
    [3] http://wiki.apache.org/solr/SolrReplication
-- 
View this message in context: http://www.nabble.com/Replication-In-1.4-tp24356158p24356158.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Replication In 1.4

Posted by Otis Gospodnetic <ot...@yahoo.com>.
And if you don't mind using the nightly Solr build, the admin page caching has been fixed in the trunk, so this won't bite you again.

 Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: Lee Theobald <Le...@openobjects.com>
> To: solr-user@lucene.apache.org
> Sent: Monday, July 6, 2009 11:41:16 AM
> Subject: Re: Replication In 1.4
> 
> 
> The problem turned out to be two fold.  Firstly, Tomcat was caching an old
> version on the admin page (hiding the replication link and some other info)
> and secondly I had a mistake in some configuration meaning the indexes
> weren't building in the correct places.  But it's sorted now and I have some
> lovely replication working with my two cores.
> 
> Thanks for your help Mark.
> -- 
> View this message in context: 
> http://www.nabble.com/Replication-In-1.4-tp24356158p24357821.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Re: Replication In 1.4

Posted by Lee Theobald <Le...@openobjects.com>.
The problem turned out to be two fold.  Firstly, Tomcat was caching an old
version on the admin page (hiding the replication link and some other info)
and secondly I had a mistake in some configuration meaning the indexes
weren't building in the correct places.  But it's sorted now and I have some
lovely replication working with my two cores.

Thanks for your help Mark.
-- 
View this message in context: http://www.nabble.com/Replication-In-1.4-tp24356158p24357821.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Replication In 1.4

Posted by Mark Miller <ma...@gmail.com>.
On Mon, Jul 6, 2009 at 10:43 AM, Lee Theobald <Le...@openobjects.com> wrote:

>
> I think it's best if I just clear down and start again.  I've got something
> wrong somewhere.  I've noticed that what I consider to be the slave does
> have a "Replication" link in the admin area.  My master doesn't.  They both
> seem to be reporting the same version from the info page
> (1.3.0.2009.06.30.08.05.44, nightly exported - yonik - 2009-06-30 08:05:44)
> but I'm guessing I may have something pointing to an old 1.3 solr war/jar.
> --
> View this message in context:
> http://www.nabble.com/Replication-In-1.4-tp24356158p24356750.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>
You should see the link based on the replication RequestHandler being
detected. Is it still commented out on the Master solrconfig?

-- 
-- 
- Mark

http://www.lucidimagination.com

Re: Replication In 1.4

Posted by Lee Theobald <Le...@openobjects.com>.
I think it's best if I just clear down and start again.  I've got something
wrong somewhere.  I've noticed that what I consider to be the slave does
have a "Replication" link in the admin area.  My master doesn't.  They both
seem to be reporting the same version from the info page
(1.3.0.2009.06.30.08.05.44, nightly exported - yonik - 2009-06-30 08:05:44)
but I'm guessing I may have something pointing to an old 1.3 solr war/jar.
-- 
View this message in context: http://www.nabble.com/Replication-In-1.4-tp24356158p24356750.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Replication In 1.4

Posted by Lee Theobald <Le...@openobjects.com>.
Cheers for the info Mark.  That looks pretty similar to what I have.  Slave
is almost the same, master was slightly different but I don't think
incorrect:

<lst name="master">
  <str name="replicateAfter">optimize</str>
  <str name="snapshot">optimize</str>
  <str
name="confFiles">solrconfig_slave.xml:solrconfig.xml,schema.xml,stopwords.txt,elevate.xml</str>
</lst>

I'll keep looking as I'm bound to have missed something but I can't quite
see what it is yet.

Lee,


markrmiller wrote:
> 
> Have you uncommented the proper RequestHandlers in solrconfig.xml?
> 
> <!-- Please refer to http://wiki.apache.org/solr/SolrReplication for 
> details on configuring replication -->
> <!--Master config-->
> <!--
> <requestHandler name="/replication" class="solr.ReplicationHandler" >
>     <lst name="master">
>         <str name="replicateAfter">commit</str>
>          <str name="confFiles">schema.xml,stopwords.txt</str>
>     </lst>
> </requestHandler>
> -->
> <!-- Slave config-->
> <!--
> <requestHandler name="/replication" class="solr.ReplicationHandler">
>     <lst name="slave">
>         <str name="masterUrl">http://localhost:8983/solr/replication</str>
>         <str name="pollInterval">00:00:60</str> 
>      </lst>
> </requestHandler>
> -->
> 
> -- 
> - Mark
> 
> http://www.lucidimagination.com
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Replication-In-1.4-tp24356158p24356526.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Replication In 1.4

Posted by Mark Miller <ma...@gmail.com>.
Lee Theobald wrote:
> Hi all,
>
> I've been trying to get the replication working in my test version of Solr
> (1.4) but I don't think I've got it right.  There doesn't seem to be any
> errors but it doesn't seem to be working either.  I'm going to the
> distribution admin page [1] and just getting a bit of text telling me "No
> distribution info present".  I've tried with multiple cores (what I want but
> perhaps isn't possible looking at the raised bugs) and a single core, both
> give the same results.  Going to the replication status page [2] gives me an
> OK.
>
> I'm thinking I've missed a vital bit of configuration.  Is there anything on
> this page [3] that is missing but I need?  For example, listeners in the
> solrconfig.xml?  If so, could someone please give me an example.
>
> Cheers for any input,
> Lee
>
>     [1] http://localhost:8080/solr/admin/distributiondump.jsp
>     [2] http://localhost:8080/solr/replication
>     [3] http://wiki.apache.org/solr/SolrReplication
>   
Have you uncommented the proper RequestHandlers in solrconfig.xml?

<!-- Please refer to http://wiki.apache.org/solr/SolrReplication for 
details on configuring replication -->
<!--Master config-->
<!--
<requestHandler name="/replication" class="solr.ReplicationHandler" >
    <lst name="master">
        <str name="replicateAfter">commit</str>
         <str name="confFiles">schema.xml,stopwords.txt</str>
    </lst>
</requestHandler>
-->
<!-- Slave config-->
<!--
<requestHandler name="/replication" class="solr.ReplicationHandler">
    <lst name="slave">
        <str name="masterUrl">http://localhost:8983/solr/replication</str>
        <str name="pollInterval">00:00:60</str> 
     </lst>
</requestHandler>
-->

-- 
- Mark

http://www.lucidimagination.com