Skip to end of metadata
Go to start of metadata

General prerequisites

Standard (and easy) setup

This guide is the bare minimum which needs to be done in order to setup a working system. Scalability and high availability are addressed separately.

  1. Install and run Cassandra as usual
  2. Install Solr 4.7.0 or later
    1. In your solr.solr.home directory create a new directory named recommend and unpack the contents of there.
    2. Add Java system property to a comma-separated list of hosts running Cassandra set-up in step 1. For example, if Cassandra is running on then add to the Java command starting Solr
    3. Start Solr
  3. Deploy recommendations-web.war to application container of your choice, we usually use Apache Tomcat. Some Java system properties need to be set on the container (in the case of Tomcat, they should go in bin/ or bin/setenv.bat depending on your platform):
    • -Dcom.ontotext.recommend.solr=http://<solrhost>:<solrport>/<solrpath>/recommend where solrhost and solrport point to the box running Solr set up in step 2.; and solrpath is the Solr web app name, usually just solr.
    •<cassandra-host>, same as in the Solr setup
    • (optional)<this-host>:<this-port>/<this-app> - if you'd like to see Swagger documentation, you need to set this to the host:port/webapp of the container running recommendations-web.war. This won't be needed for future versions of recommendations.
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Nov 04, 2014

    1. What about Cassandra's port? Can it be changed?

    2. It would be nice to provide methods to test each step of the installation. 

    3. Had to remove slf4j-api-1.7.6.jar from recommendations-web/lib. Clached with Solr's libs (running on same Tomcat)


    5. Can reuse part of these:

    6. Removed log4j-over-slf4j-1.7.6.jar from recommendations-web/lib due to Solr and