-
Notifications
You must be signed in to change notification settings - Fork 2
Reindexing networks after SOLR update
Joanna edited this page Jun 3, 2024
·
7 revisions
When the Solr version is updated, it is necessary to reindex networks in NDEx.
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-solrAfter stopping the services, start the NDEx Solr service alone.
systemctl start ndex-solrSwitch 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.errOnce the reindexing is complete, restart the NDEx Tomcat service:
systemctl start ndex-tomcat- Monitor the log files (
/tmp/ndexsolr.outand/tmp/ndexsolr.err) for any potential errors during the reindexing process.