Vaibhav Gupta
Vaibhav Gupta

Reputation: 51

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

I am using the Apache solr. I run the solr cloud example but there is no schema file and solrconfig.xml file inside the node directory.

Upvotes: 0

Views: 966

Answers (1)

MatsLindh
MatsLindh

Reputation: 52902

When you're running in cloud mode, configuration is stored inside Zookeeper. You can use the bin/solr zk downconfig and upconfig commands to upload and download the configuration details from your cluster.

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. The Admin UI Cloud -> Tree -> configs node lists all available configuration sets.

-d <configset dir> The path to write the downloaded configuration set into. If just a name is supplied, $SOLR_HOME/server/solr/configsets will be the parent. 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. Unnecessary if ZK_HOST is defined in solr.in.sh or solr.in.cmd.

Upvotes: 5

Related Questions