Validate transitioned Solr configuration
solr-upgrade.sh script includes a
validate-metadata command that you can run against the migrated Solr
configuration and metadata to make sure that they can be used to reinitialize the Solr
service after the CDH cluster
The script performs a series of checks to make sure that:
- Required configuration files (such as
clusterstate.json, and collection configuration sets) are present.
- The configuration files are compatible with the Solr version being upgraded to (Solr 8, in this case).
Replace [***SOLR/METADATA/OUTPUT/DIRECTORY***] with the path to the directory containing the migrated Solr configuration.
/opt/cloudera/cm/solr-upgrade/solr-upgrade.sh \ validate-metadata -c [***SOLR/METADATA/OUTPUT/DIRECTORY***]
If you have enabled
Kerberos, specify your JAAS configuration file by adding
[***PATH/TO/SOR/JAAS.CONF***] to the
/opt/cloudera/cm/solr-upgrade/solr-upgrade.sh validate-metadata \ -c $HOME/cr7-migrated-solr-config
If the validation is successful, the script outputs a message similar to the following:
Validation successful for metadata in /home/solruser/[***SOLR/METADATA/OUTPUT/DIRECTORY***]
Validation successful for metadata in /home/solruser/cr7-migrated-solr-config
If the validation fails, you can revisit the steps in Transition the configuration.