简体   繁体   English

SOLR 为什么它的 state 这个 'leaderUrl' 必须在没有 /replication 后缀的情况下指定

[英]SOLR why does its state this 'leaderUrl' must be specified without the /replication suffix

Why when I setup a Solr follower/slave do I get this message in the Solr logs为什么当我设置 Solr 追随者/奴隶时,我会在 Solr 日志中收到此消息

'leaderUrl' must be specified without the /replication suffix

This used to work fine in ersion 7.6 but now in version 8.11.1 it complains.这曾经在 ersion 7.6 中工作正常,但现在在 8.11.1 版中它会抱怨。 What should the value be if not /replication?如果不是 /replication,该值应该是什么?

This is the XML snippet in the solrconfig.xml that does the replications这是执行复制的 solrconfig.xml 中的 XML 片段

<requestHandler name="/replication" class="solr.ReplicationHandler">
      <lst name="slave">
        <str name="leaderUrl">http://solr1:8983/solr/bookings/replication</str>
        <str name="pollInterval">00:00:20</str>
      </lst>
    </requestHandler>

在此处输入图像描述

It seems to mean the leadUrl, I seemed to be transfixed on the name of the request handler!好像是leadUrl的意思,我好像被request handler的名字给惊呆了!

So going from this which worked in 7.6所以从这个在 7.6 中有效的开始

<str name="masterUrl">http://solr1:8983/solr/bookings/replication</str>

to this which works in 8.11.1在 8.11.1 中工作的这个

<str name="leaderUrl">http://solr1:8983/solr/bookings</str>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM