gpt4 book ai didi

solr - 如何禁用 shardsWhitelist,我收到以下错误

转载 作者:行者123 更新时间:2023-12-04 07:38:44 30 4
gpt4 key购买 nike

因此,当我在 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=truesolr.in.sh 文件,

在路径 "...\solr-VERSION\bin" 中找到

关于solr - 如何禁用 shardsWhitelist,我收到以下错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67606577/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com