gpt4 book ai didi

database - 解决方案 : Path for the config files in embedded zookeeper

转载 作者:搜寻专家 更新时间:2023-10-30 23:39:11 24 4
gpt4 key购买 nike

我正在使用 solr-6.0.0

使用云示例,我使用以下命令在云模式下启动了 solr

bin/solr start -cloud -p 8983 -s "example/cloud/node1/solr"
bin/solr start -cloud -p 7574 -s "example/cloud/node2/solr" -z localhost:9983

我想从我的数据库中索引数据。如果它是独立模式,我会相应地编辑 ma​​naged-schemasolrconfig.xml 文件。但是对于云模式,我找不到那些文件。

根据文档:

Note that the SolrCloud example does not include a conf directory for each Solr Core (so there is no solrconfig.xml or Schema file). This is because the configuration files usually found in the conf directory are stored in ZooKeeper so they can be propagated across the cluster.

那么我在哪里可以编辑这些文件,或者我是否需要上传一组新的配置文件并覆盖已经上传的文件?

最佳答案

在文档中找到这个:请参阅部分:使用 zkcli 或 SolrJ 上传配置Uploading configs using zkcli

你可以做这样的事情来推送一个文件:

zkcli.sh -zkhost localhost:2181 -cmd putfile /solr.xml /path/to/solr.xml

和类似这样的东西来上传配置文件:

./server/scripts/cloud-scripts/zkcli.sh -zkhost localhost:9983 -cmd upconfig -confname <conf-name> -confdir <path-of-the-local-conf-dir>

关于database - 解决方案 : Path for the config files in embedded zookeeper,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37266540/

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