因此,当我在 Solr Admin 的 RawQueryParameter 中添加分片时,出现以下错误
**error":{
"metadata":[
"error-class","org.apache.solr.common.SolrException",
"root-error-class","org.apache.solr.common.SolrException"],
"msg":"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",
"code":403}}**
我想禁用它,但没有发现任何有用的东西 请告诉我如何禁用它
我不想像这样指定分片
<str name="shardsWhitelist">${solr.shardsWhitelist:localhost:8080/solr/test,localhost:8080/solr/test2}</str>
只是想禁用它
最佳答案
您可以在启动 solr 时将其添加为参数,如下所示。
-Dsolr.disable.shardsWhitelist=true
另一种选择是您可以添加为
solr.disable.shardsWhitelist=true
到 solr.in.sh
文件,
在路径 "...\solr-VERSION\bin"
中找到
关于solr - 如何禁用 shardsWhitelist,我收到以下错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67606577/