cassandra DSE 6.8.34中的SolrException“solrconfig editing is not enabled,because disable.configEdit“

unftdfkk  于 12个月前  发布在  Cassandra
关注(0)|答案(2)|浏览(78)

我尝试在安装了DSE的Linux环境中编辑solrconfig.xml文件。然而,我一直无法找到该文件,并试图通过Config API编辑它。当我尝试这样做时,我收到以下消息:“由于disable.configEdit,solrconfig编辑未启用。”此外,我找不到Solr的.sh文件。
我尝试了以下命令:

POST http://localhost:8983/solr/keyspace.mytable/config

但收到了这样的回复:

{
    "responseHeader": {
        "status": 403,
        "QTime": 27
    },
    "error": {
        "metadata": [
            "error-class",
            "org.apache.solr.common.SolrException",
            "root-error-class",
            "org.apache.solr.common.SolrException"
        ],
        "msg": " solrconfig editing is not enabled due to disable.configEdit",
        "code": 403
    }
}
hgtggwj0

hgtggwj01#

您可以使用dsetool get_core_config来获取solrconfig.xml文件:
https://docs.datastax.com/en/dse/6.8/dse-admin/datastax_enterprise/tools/dsetool/dsetoolGet_core_config.html
你也可以通过cqlsh获取:

DESCRIBE PENDING SEARCH INDEX CONFIG on keyspace.tablename;
eyh26e7m

eyh26e7m2#

在DataStax Enterprise(DSP-13530)中,出于安全原因,已禁用在Solr UI上执行某些管理操作(包括索引和重新加载内核)的访问权限。
我们建议使用dsetool来管理搜索索引。例如,要检索核心的Solr配置的副本:

$ dsetool get_core_config ks.table

手动编辑下载的solrconfig.xml文件,然后将其上传,同时使用reload_core命令触发重新索引。例如:

$ dsetool reload_core ks.table \
    solrconfig=/path/to/solrconfig.xml \
    schema=/path/to/schema.xml \
    distributed=true \
    reindex=true \
    deleteAll=false

有关详细信息,请参见Managing search indexes with dsetool commands。干杯!

相关问题