Generate a Collection Configuration Using Instance Directories
A collection configurations is a necessary prerequisite of creating a collection. Learn
how to do it using instance directories.
In this case, configuration files for a collection are contained in a directory called
an instance directory.
If you are using Kerberos, kinit as a user with permission to create
the collection configuration:
kinit solradmin@EXAMPLE.COM
Replace EXAMPLE.COM with your Kerberos realm name.
To generate a template instance directory, run the following command:
solrctl instancedir --generate $HOME/solr_configs
Customize the collection by directly editing the solrconfig.xml and
schema.xml files created in
$HOME/solr_configs/conf.
After completing the configuration, make it available to Solr by running the following
command, which uploads the contents of the instance directory to ZooKeeper:
Use the solrctl utility to verify that your instance directory
uploaded successfully and is available to ZooKeeper. List the uploaded instance
directories as follows:
solrctl instancedir --list
If you used the --create command to create a collection named
weblogs, the --list command should return
weblogs.