[英]Solr 3.6.1 replication master not found
使用Solr 3.6.1,在10.0.0.73的從站上執行“ fetchindex”命令時,出現以下錯誤:
嚴重:主機位於: http://10.0.0.249:8983/solr/my_core/replication
://10.0.0.249:8983/solr/my_core/replication不可用。 索引獲取失敗。 例外:URL org.apache.commons.httpclient.methods.PostMethod@388a2006的請求失敗
主服務器上位於10.0.0.249的my_core核心在solrconfig.xml中具有以下配置
<requestHandler name="/replication" class="solr.ReplicationHandler" >
<lst name="master">
<str name="replicateAfter">commit</str>
<str name="replicateAfter">startup</str>
<str name="confFiles">schema.xml,stopwords.txt</str>
</lst>
</requestHandler>
在10.0.0.73的從屬服務器上,my_core在其solrconfig.xml中將復制配置為
<requestHandler name="/replication" class="solr.ReplicationHandler">
<lst name="slave">
<str name="masterUrl">http://10.0.0.249:8983/solr/my_core/replication</str>
<str name="pollInterval">00:00:60</str>
</lst>
</requestHandler>
我想我在做一些明顯的錯誤,但是經過數小時的閱讀和重新閱讀有關復制的Solr文檔以及此處和其他地方的大量帖子后,找不到它。 有人有主意嗎? 請注意,其他發送到主服務器的請求也會成功,例如
GET http://10.0.0.249:8983/solr/my_core/select
回報
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">0</int>
<lst name="params"/>
</lst>
<result name="response" numFound="0" start="0"/>
在從屬配置上的主URL指定為,
<str name="masterUrl">http://10.0.0.249:8983/solr/my_core/replication</str>
正確的網址是
<str name="masterUrl">http://10.0.0.249:8983/solr/my_core</str>
您只需要指定URL,直到核心名稱為止。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.