Versions Compared

Key

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

Pre-requisites

  • Have a JDK installed on your PC (Java 8)

  • Have an IDE installed on your PC (in the guide we use Eclipse) and be able to launch it as root

  • Have git installed on your PC

  • Have maven and ant installed on your PC

Clone repository

Open a terminal and navigate to the folder where you want to have Datafari source code to be checked out (usually your workspace folder).

Perform a

git

...

clone

...

https://github.com/francelabs/datafari.git

to checkout the code. The root directory name is datafari.

...

Navigate to the folder datafari. We now call it DATAFARI_SRC.

Run a : 'mvn install' in DATAFARI_SRC.

Run a : 'ant all' in DATAFARI_SRC/debian7

Install Datafari

Get the dependencies :

apt-get install curl install curl debconf unzip sudo libc6-dev jq lsof

Run a 'dpkg -i DATAFARI_SRC/debian7/installer/dist/datafari.deb and type an admin password.

Open the project in Eclipse

In Eclipse,go to File -> Import... , type maven and « Existing Maven project ».Image Removed

...

Select the DATAFARI_SRC folder as root directory and click Finish. 

Change the permissions of the following folders :

Code Block
chmod -R 777 /opt/datafari 

...


chmod -R 700 /opt/datafari/pgsql

To add access rights to any user on datafari installation folder. Be careful : this should be done only done only for the development environment and should be avoided for a production deployment!

...

and select Apache Tomcat V.9.0.

Select DATAFARI_SRC/tomcat-dev for the Tomcat Installation directory and Finish.Image Removed

...

If Eclipse does not accept the Tomcat version, stop Eclipse, and copy the patch you can download here https://bugs.eclipse.org/bugs/attachment.cgi?id=262418&action=edit in the plugins directory of Eclipse installation directory.

In a Servers window (for example in Debug Perspectives), click on "add a server", select a "tomcat 9.0 server". Click on next and add Datafari webapp :Image Removed

...

Click Finish.

...

Run Datafari in normal mode. Go to /opt/datafari/bin and run ./start-datafari.sh.

Start Tomcat server with a right click → Start on the server:Image Removed

...

Go to the Datafari URL (http://localhost:9080/Datafari)

...

If you change the solr configuration in DATAFARI_SRC/datafari-solr/solr_home, you have to run the script updateSolrConfig.sh in DATAFARI_SRC/datafari-solr to update the config in Solr Cloud.

...

(info) For more information about ManifoldCF configuration, please have a look here: Crawling

Info

Note that if after some time, you do a git pull and the build is not working anymore, it could be due to the Maven dependencies. Delete your local Maven repository in this case : the folder is : /your-user/.m2/