Search post-HDP-upgrade tasks

After upgrading your HDP cluster to Cloudera Runtime, you need to add a Solr service to your CDP cluster where you can recreate the collections you transitioned from HDP Search. Once done, you can proceed with reindexing data to the transitioned collections.

  • HDP is upgraded to Cloudera Runtime 7.1.1 or higher.
  • The management platform is transitioned from Ambari to Cloudera Manager.
  1. In the Cloudera Manager Admin Console, add Solr service to your CDP cluster.
    For more information, see Adding a Service.
  2. In the Cloudera Manager Admin Console, go to Solr service > Configuration.
  3. In the Search field, type upgrade to filter the configuration parameters.
  4. For the Solr Server for Upgrade property, select one of your Solr Server hosts. When you run the migration script, make sure to run it on this host.
  5. For the Upgrade Backup Directory property, specify a directory in HDFS. This directory must exist and be writable by the Solr service superuser (solr by default). Examples in these procedures use /cr7-solr-upgrade/backup for this HDFS directory.
  6. For the Upgrade Metadata Directory property, specify a directory on the local filesystem of the host you selected as the Solr Server for Upgrade. When you run the migration script, make sure that you copy the migrated configuration to this directory. This directory must also be writable by the Solr service superuser. Examples in these procedures use /cr7-solr-metadata/migrated-config for this local directory.
  7. Enter a Reason for change and then click Save Changes to commit the changes.
  8. Copy the transitioned configuration metadata to the Solr server host designated as Solr Server for Upgrade.
  9. Reinitialize Solr state for upgrade:
    1. In the Cloudera Manager Admin Console, go to Solr service.
    2. Select Actions > Reinitialize Solr State for Upgrade and click Reinitialize Solr State for Upgrade to confirm.
  10. Bootstrap the Solr configuration:
    1. In the Cloudera Manager Admin Console, go to Solr service.
    2. Select Actions > Bootstrap Solr Configuration and click Bootstrap Solr Configuration to confirm.
  11. Start the Solr service:
    1. In the Cloudera Manager Admin Console, go to Solr service.
    2. Select Actions > Start .
  12. Bootstrap the Solr collections:
    1. In the Cloudera Manager Admin Console, go to Solr service.
    2. Select Actions > Bootstrap Solr Collections and click Bootstrap Solr Collections to confirm.
  1. Recreate aliases, if you were using them.
  2. Reindex Solr collections.