2016-05-17 63 views
0

我使用Solr的-6.0.0Solr的:在嵌入式动物园管理员的配置文件

使用云示例路径, 我开始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 

我会喜欢从我的数据库索引数据。如果它是独立模式,我将相应地编辑托管模式solrconfig.xml文件。但对于云模式,我无法找到这些文件。

根据该文档:

注意,SolrCloud示例不包括conf目录为 每个Solr的核心(因此没有solrconfig.xml中或架构文件)。这是 ,因为通常位于conf目录 中的配置文件存储在ZooKeeper中,因此它们可以在群集中传播。

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

回答

0

在文档中发现这一点: 见:使用zkcli或SolrJ 上传CONFIGS在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> 
+0

你怎么参考solr.xml f rom zookeeper何时启动节点? – user482963