Skip to content

Reindexing networks after SOLR update

Joanna edited this page Jun 3, 2024 · 7 revisions

Overview

When the Solr version is updated, it is necessary to reindex networks in NDEx.

Steps to Reindex Networks in NDEx

1. Stop NDEx Tomcat and Solr Services (as root user: sudo -u root /bin/bash)

To prevent any access or modification issues during the reindexing process, first stop the NDEx Tomcat and Solr services:

systemctl stop ndex-tomcat
systemctl stop ndex-solr

2. Start NDEx Solr Service (as root user: sudo -u root /bin/bash)

After stopping the services, start the NDEx Solr service alone.

systemctl start ndex-solr

3. Run the Solr Index Builder

Switch to the ndex user and navigate to the appropriate directory to set the configuration path. Then execute the SolrIndexBuilder command to start reindexing:

sudo -u ndex /bin/bash
cd tomcat/webapps/ndexbio-rest/WEB-INF/
export ndexConfigurationPath=/opt/ndex/conf/ndex.properties
java -Xmx5g -classpath lib/*:../../../lib/* org.ndexbio.common.solr.SolrIndexBuilder all 1>/tmp/ndexsolr.out 2>/tmp/ndexsolr.err

4. Restart NDEx Tomcat Service (as root user: sudo -u root /bin/bash)

Once the reindexing is complete, restart the NDEx Tomcat service:

systemctl start ndex-tomcat

Additional Notes

  • Monitor the log files (/tmp/ndexsolr.out and /tmp/ndexsolr.err) for any potential errors during the reindexing process.
Clone this wiki locally