Versions Compared

Key

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

...

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

  • CASE 1 : you just downloaded Datafari and you NEVER launched it
  • CASE 2 : 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.

CASE 1 

You need to do it before launch the script init-datafari.sh before beginning). . If you have already your instance of Datafari that is running, go to case 2.

  1. Download the lastest jar release from JCIFS NG jar version 2.1.3 here : https://github.com/AgNO3repo1.maven.org/maven2/eu/agno3/jcifs/jcifs-ng/releases2.1.3/jcifs-ng-2.1.3.jar
     
  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. You need to initialize the connectors in MCF. To do it the simplest is to run our dedicated script in

    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 ! 

    Additional step if you have an existing Datafari :


    You are done, you can launch init-datafari.sh now.


CASE 2 

  1. Stop datafari 
  2. Download the JCIFS NG jar version 2.1.3 here : https://repo1.maven.org/maven2/eu/agno3/jcifs/jcifs-ng/2.1.3/jcifs-ng-2.1.3.jar
     
  3. 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 . First go to this folder: cd /connector-lib-proprietary 
    Image Added
     
  4. Edit the file /opt/datafari/mcf/mcf_home

  5. Then authorize the execution of the script:
    chmod u+x initialize.sh
  6. Finally launch the script :

    /connectors.xml and uncomment the line :
    <!--repositoryconnector name="Windows shares" class="org.apache.manifoldcf.crawler.connectors.sharedrive.SharedDriveConnector"/→
    Image Added

  7. Start Datafari
  8. initialize the connectors in MCF

    1. bash initialize.sh
      You will see that the connector is now in the list of MCF connectors :
       

...