在 Solr 6.6 中配置 shardsWhitelist [英] Configuring shardsWhitelist in Solr 6.6

查看:107
本文介绍了在 Solr 6.6 中配置 shardsWhitelist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要帮助在 Solr 6.6 中配置 shardsWhitelist.我在 Solr.xml 中有以下行

Need help to configure shardsWhitelist in Solr 6.6. I have the below line in Solr.xml

<str name="shardsWhitelist">${solr.shardsWhitelist:}</str>

我在 solrconfig.xml 中添加了以下内容

And I added the following in solrconfig.xml

  <requestHandler name="/select" class="solr.SearchHandler">
     <shardHandler class="HttpShardHandlerFactory">
        <int name="socketTimeOut">1000</int>
        <int name="connTimeOut">5000</int>
        <str name="shardsWhitelist">https://<URL1>/solr/core0,<URL2>/solr/core0,<URL3>/solr/core0</str>
     </shardHandler>

但是,我无法让 solr 确认配置:

But, I can’t get the solr to acknowledge the configuration:

HttpShardHandlerFactory shardsWhitelist 未配置,但在使用 'shards' 参数时需要(代替 ZkController 和 ClusterState).设置 -Dsolr.disable.shardsWhitelist=true 以禁用分片白名单检查

HttpShardHandlerFactory shardsWhitelist not configured but required (in lieu of ZkController and ClusterState) when using the 'shards' parameter. set -Dsolr.disable.shardsWhitelist=true to disable shards whitelist checks

推荐答案

确保不要使用 https/http.

Make sure to NOT use https/http.

${solr.shardsWhitelist::PORT/solr/CORENAME,:PORT/solr/CORENAME}

${solr.shardsWhitelist::PORT/solr/CORENAME,:PORT/solr/CORENAME}

示例:${solr.shardsWhitelist:something.com:8985/solr/core_0,something.com:8985/solr/core2}

Example: ${solr.shardsWhitelist:something.com:8985/solr/core_0,something.com:8985/solr/core2}

这篇关于在 Solr 6.6 中配置 shardsWhitelist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆