Transition the configuration using Cloudera Manager versions 7.3.1 or higher
The migration script transforms configuration metadata before the actual upgrade and checks its validity for the target Solr version. In case it identifies incompatibilities it cannot resolve, the script stops, letting you fix the input file with the incompatibility. Afterwards, you can rerun the script to continue with the transition process.
When running the script, you must specify the location of the CDH 5 Solr binaries
using the CDH_SOLR_HOME
environment variable. Solr binaries are
located at /opt/cloudera/parcels/CDH/lib/solr
.
For example:
export CDH_SOLR_HOME=/opt/cloudera/parcels/CDH/lib/solr
For information on solr-upgrade.sh
command syntax and usage options,
run the following command:
./solr-upgrade.sh help
In this procedure you run solr-upgrade.sh
with the
upgrade-metadata
option. It transforms configuration metadata
to make it compatible with the target Solr version. The input of the script
([***/SOLR/METADATA/INPUT/DIRECTORY***]) is the Solr
configuration that you have downloaded from the ZooKeeper service of the source
version.
The Solr configuration transition script, solr-upgrade.sh
, is
included with Cloudera Manager 7.1 agent software. This enables you to run the
script after upgrading to Cloudera Manager 7.1, but before upgrading to Cloudera Runtime 7.1.1
or higher.
The script is located at
/opt/cloudera/cm/solr-upgrade/solr-upgrade.sh
.