简体   繁体   English

在 solr 云示例中未找到 solrconfig.xml 和托管模式

[英]Did not find the solrconfig.xml and managed-schema in solr cloud example

I am using the Apache solr.我正在使用 Apache solr。 I run the solr cloud example but there is no schema file and solrconfig.xml file inside the node directory.我运行 solr 云示例,但节点目录中没有架构文件和 solrconfig.xml 文件。

When you're running in cloud mode, configuration is stored inside Zookeeper.当您在云模式下运行时,配置存储在 Zookeeper 中。 You can use the bin/solr zk downconfig and upconfig commands to upload and download the configuration details from your cluster.您可以使用bin/solr zk downconfigupconfig 命令从集群上传和下载配置详细信息

Download a configuration set 下载配置集

bin/solr zk downconfig -z 111.222.333.444:2181 -n mynewconfig -d /path/to/configset

Upload a configuration set 上传配置集

bin/solr zk upconfig -z 111.222.333.444:2181 -n mynewconfig -d /path/to/configset

Parameter reference参数参考

-n <name> Name of the configset in ZooKeeper to download. -n <name> ZooKeeper 中要下载的配置集的名称。 The Admin UI Cloud -> Tree -> configs node lists all available configuration sets. Admin UI Cloud -> Tree -> configs 节点列出了所有可用的配置集。

-d <configset dir> The path to write the downloaded configuration set into. -d <configset dir>将下载的配置集写入的路径。 If just a name is supplied, $SOLR_HOME/server/solr/configsets will be the parent.如果只提供了一个名称, $SOLR_HOME/server/solr/configsets 将是父级。 An absolute path may be supplied as well.也可以提供绝对路径。 In either case, pre-existing configurations at the destination will be overwritten!在任何一种情况下,目的地的预先存在的配置都将被覆盖!

-z <zkHost> The ZooKeeper connection string. -z <zkHost> ZooKeeper 连接字符串。 Unnecessary if ZK_HOST is defined in solr.in.sh or solr.in.cmd.如果 ZK_HOST 在 solr.in.sh 或 solr.in.cmd 中定义,则不需要。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM