[DEPRECATED] Add the JCIFS Connector to Datafari - Community Edition

Valid from 4.0 up to 4.2

The documentation below is valid from Datafari v4.0.0 up to v4.2.x included

Due to licences issues, we do not have the right to package the JCIFS library with Datafari. So you have to download it on your own and to add it to Datafari.

If you want to add the JCIFS connector to the list of existing connectors, here it is the procedure in order to do it. We distinct 2 cases :

  • you just downloaded Datafari and you NEVER launched it

  • you have an existing Datafari running

The beginning is the same for the two cases. If you are in the second case, you just need to follow few more steps that we will detail (please stop Datafari : bash stop-datafari.sh before beginning). 

  1. Download the jcifs-1.3.xx.jar from http://jcifs.samba.org/src/
     

  2. Copy the JAR to DATAFARI_SOURCE_DIR\mcf\mcf_home\connector-lib-proprietary
    So if you are in Debian for example, copy to /opt/datafari/mcf/mcf_home/connector-lib-proprietary 

     

  3. Rename it into jcifs.jar
    mv jcifs-1.3.18.jar jcifs.jar 

  4. Edit the file /opt/datafari/mcf/mcf_home/connectors.xml and uncomment the line :
    <!--repositoryconnector name="Windows shares" class="org.apache.manifoldcf.crawler.connectors.sharedrive.SharedDriveConnector"/→

    If you just downloaded Datafari and never launched it, you are done ! 

  5. Additional step if you have an existing Datafari :

    1. You need to initialize the connectors in MCF. To do it the simplest is to run our dedicated script in /opt/datafari/mcf/mcf_home . First go to this folder: cd /opt/datafari/mcf/mcf_home

    2. Then authorize the execution of the script:
      chmod u+x initialize.sh

    3. Finally launch the script :
      bash initialize.sh
      You will see that the connector is now in the list of MCF connectors :

       

Finally you can restart Datafari. In the repository menu of MCF, the new connector is now present :

Â