Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

.... Work in progress ....

Currently there is one main Solr instance installed in the DDB-Dev-Network: on ddb-di-05. This instance serves as the main search server for the develop and master backend deployments.

These instructions are only for updating this instance. Various prerequisites to running a solr instance are not covered as they have already been set up on this server.


To update this instance the following steps should be performed (as user solr)Download the new Solr version


Code Block
languagebash
titleDownload the new Solr version
linenumberstrue
wget https://mirror.synyx.de/apache/lucene/solr/X.Y.Z/solr-X.Y.Z.tgz
or if older version:
wget https://archive.apache.org/dist/lucene/solr/X.Y.Z/solr-X.Y.Z.tgz 


Code Block
languagebash
titleCheck integrity of downloaded file

...

linenumbers

...

true
wget https://downloads.apache.org/lucene/solr/X.Y.Z/solr-X.Y.Z.tgz.sha512

...


sha512sum solr-X.Y.Z.tgz


Code Block
languagebash
titleUnpack new Solr version in

...

1
2

...

/data/ddb/tools/solr
linenumberstrue
cd /data/ddb/tools/solr
tar -xvzf 

...

~/solr-X.Y.Z.tgz


Code Block
languagebash
titleCopy extra libs to Solr web-app folder

...

linenumbers

...

true
cd /data/ddb/tools/solr

...

/solr-X.Y.Z/

...


cp dist/*.jar ./server/solr-webapp/webapp/WEB-INF/lib/

...


cp contrib/extraction/lib/*.jar ./server/solr-webapp/webapp/WEB-INF/lib/

...


cp contrib/analysis-extras/lucene-libs/*.jar ./server/solr-webapp/webapp/WEB-INF/lib/


Code Block
languagebash
titleLink custom libs from DDB Cortex

...

linenumbers

...

true

...

cd

...

 ./server/solr-webapp/webapp/WEB-INF/lib/

...


ln

...

 -s

...

 /data/ddb/

...

ddb-backend-solr/lib/

...

ddb-backend-solr.jar

...


ln

...

 -s

...

 /data/ddb/

...

ddb-backend-solr/lib/solr-ocrhighlighting.jar


Code Block
languagebash
titleStop running Solr server

...

linenumberstrue
service solr stop


Code Block
languagebash
titleChange symlink to new installation

...

linenumbers

...

true
cd /data/ddb/tools/solr
rm current
ln -s 

...

solr-X.Y.Z

...

 current


Code Block
languagebash
titleStart new Solr server

...

linenumberstrue
service solr start


Please check that the new Solr has startet without error by checking the web console: http://ddb-di-vm05.fiz-karlsruhe.deservername:8183/