重新加载 SolrCloud 配置(存储在 Zookeeper 上)-schema.xml [英] Reloading SolrCloud configuration (stored on Zookeeper) - schema.xml

查看:31
本文介绍了重新加载 SolrCloud 配置(存储在 Zookeeper 上)-schema.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用独立的 zookeeper 设置了 SolrCloud 复制.但现在我希望对我的 Schema.xml 进行一些更改并重新加载核心.问题是,当我运行单个服务器 Solr(无 solrcloud)时,会加载新模式,但我不知道如何在所有复制服务器上重新加载模式.我尝试在其中一台服务器上重新加载架构,但没有预期的影响.有没有办法在使用zookeeper的分布式复制设置中在Solr中重新加载我的schema.xml.

I have setup a SolrCloud replication using standalone zookeeper. But now I wish to make some changes to my Schema.xml and reload the core. The problem is that when I run a single server Solr (no solrcloud) the new schema is loaded, but I do not know how to reload schema on all the replication server. I tried reloading the schema on one of the server with no desired impact. Is there a way in which I can reload my schema.xml in Solr in distributed replication setup which uses zookeeper.

推荐答案

刚刚找到解决方案,我们需要将更改的配置推送到zookeeper ensemble.

Just found the solution we need to push the changed configuration to zookeeper ensemble.

只要使用

sh zkcli.sh -cmd upconfig -zkhost  127.0.0.1:2181  -collection collection1 -confname myconf -solrhome ../solr -confdir ../solr/collection1/conf

zkcli.sh 存在于 example/cloud-scripts 下

zkcli.sh is present under example/cloud-scripts

这篇关于重新加载 SolrCloud 配置(存储在 Zookeeper 上)-schema.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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