Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

The tmp directory is a directory used by all JVM (and the OS), in which tmp files will be created. Usually, these tmp files are files that need to be read by an application and that are too big or too dangerous to be directly treated in memory. So it is really important for both Datafari and the operatig system on which it is installed, that the tmp directory fits the following recommandations :

  • Be on the fastest available partition (SSD or equivalent)

  • The partition holding the tmp directoy must have enough available free space : at least 10% of the partition on which Datafari is installed

  • Be readable and writable by any user

  • Be directly reachable by Datafari, no particular protocol or credentials to use.


By default, Datafari uses the tmp directory path provided by the OS on which it is installed. However, if you need to change it, you will need to follow these steps :

  • Edit the DATAFARI_HOME/mcf/mcf_home/options.env.unix file (on Datafari main node and on each MCF node if in n-tier architecture) and add the following line at the end of the file : -Djava.io.tmpdir=/path/to/tmpdir

  • Edit the DATAFARI_HOME/tomcat/bin/setenv.sh and the DATAFARI_HOME/tomcat-mcf/bin/setenv.sh files, and update the JAVA_OPTS parameter to add the -Djava.io.tmpdir=/path/to/tmpdir param. 
    Example: 

    JAVA_OPTS="-Duser.timezone=UTC -Djava.io.tmpdir=/path/to/tmpdir"


  • Edit the DATAFARI_HOME/solr/bin/solr.in.sh  (on each Solr node if in n-tier architecture) and update the SOLR_OPTS parameter to add the -Djava.io.tmpdir=/path/to/tmpdir param
    Example:


    SOLR_OPTS="$SOLR_OPTS -Dsolr.ssl.checkPeerName=false -Djava.io.tmpdir=/path/to/tmpdir"


  • No labels