Versions Compared

Key

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


Info
title

Valid from 4.3

The documentation below is valid from Datafari v4.3.0 upwards

...

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.

...

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

  1. 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


     


    For example you can use wget :

    Code Block
    wget https://repo1.maven.org/maven2/eu/agno3/jcifs/jcifs-ng/2.1.3/jcifs-ng-2.1.3.jar

  2. Copy the JAR to

    DATAFARI_SOURCE_DIR\mcf\

    /opt/datafari/mcf/mcf_home

    \

    /connector-lib-proprietary


    So if you are in Debian for example, copy to

    folder

    Image Added

  3. Change the permissions to the JAR file that you just downloaded :
     

    Code Block
    chmod 775 /opt/datafari/mcf/mcf_home/connector-lib-proprietary/jcifs*.jar
    chown datafari /opt/datafari/mcf/mcf_home/connector-lib-
    proprietary 
    Image Removed
     
    proprietary/jcifs*.jar
  4. Edit the file /opt/datafari/mcf/mcf_home/connectors.xml and uncomment the line :

    Code Block
    <!--repositoryconnector name="Windows shares" class="org.apache.manifoldcf.crawler.connectors.sharedrive.SharedDriveConnector"/
    >



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


CASE 2 

  1. Stop

    datafari 

    Datafari :
     

    Code Block
    cd /opt/datafari/bin
    bash stop-datafari.sh
  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

     

    For example you can use wget :

    Code Block
    wget 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\

    /opt/datafari/mcf/mcf_home

    \

    /connector-lib-proprietary


    So if you are in Debian for example, copy to

    folder

    Image Added

  4. Change the permissions to the JAR file that you just downloaded :
     

    Code Block
    chmod 775 /opt/datafari/mcf/mcf_home/connector-lib-proprietary/jcifs*.jar
    chown datafari /opt/datafari/mcf/mcf_home/connector-lib-
    proprietary 
    Image Removed
     
    proprietary/jcifs*.jar
  5. Edit the file /opt/datafari/mcf/mcf_home/connectors.xml and uncomment the line :

    Code Block
    <!--repositoryconnector name="Windows shares" class="org.apache.manifoldcf.crawler.connectors.sharedrive.SharedDriveConnector"/
    >


  6. Start Datafari

    Code Block
    cd /opt/datafari/bin
    bash start-datafari.sh

  7. initialize the connectors in MCF by lauching the script initialize.sh :

    Code Block
    cd /opt/datafari/mcf/mcf_home
    bash initialize.sh



    You will see that the connector is now in the list of MCF connectors :

    Image RemovedImage Added

     

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

...