Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Installation

Chris Mattmann edited this page Aug 14, 2018 · 25 revisions

Build

First, set the

  • DRAT_HOME (e.g. ~/drat/deploy),
  • JAVA_HOME (e.g. readlink -f /usr/bin/java | sed "s:bin/java::"), and
  • GANGLIA_URL (e.g. http://zipper.jpl.nasa.gov/ganglia/)
    environment variables. You should also set the variables below, but they aren't mandatory.

Ensure you have Apache Maven installed before running the build process.

Then, you can build DRAT in a few steps, substituting ~/drat/ with your preferred install directory:

  1. mkdir -p ~/drat/deploy
  2. mkdir -p ~/drat/src
  3. cd ~/drat/src
  4. git clone https://github.com/apache/drat.git
  5. cd drat && mvn install
  6. tar -C ../../deploy/ -xvzf distribution/target/dms-distribution-0.1-bin.tar.gz
  7. See the wiki on how to run DRAT.

Useful Environment Variables

The following useful environment variables are set by RADIX but can be overwritten on a per DRAT install basis. Here's the default config, feel free to change/override in your own environment.

csh/tcsh

setenv DRAT_HOME ~/drat/deploy
setenv GANGLIA_URL http://zipper.jpl.nasa.gov/ganglia/
setenv FILEMGR_URL http://localhost:9000
setenv WORKFLOW_URL http://localhost:9001
setenv RESMGR_URL http://localhost:9002
setenv SOLR_DRAT_URL=http://localhost:8080/solr/drat
setenv WORKFLOW_HOME $DRAT_HOME/workflow
setenv FILEMGR_HOME $DRAT_HOME/filemgr
setenv PGE_ROOT $DRAT_HOME/pge
setenv PCS_HOME $DRAT_HOME/pcs
setenv FMPROD_HOME $DRAT_HOME/tomcat/webapps/fmprod/WEB-INF/classes/
setenv SOLR_DRAT_URL http://localhost:8080/solr/drat
setenv DRAT_EXCLUDE ""

bash

export JAVA_HOME=<path to jvm>
export DRAT_HOME=$HOME/drat/deploy
export GANGLIA_URL=http://zipper.jpl.nasa.gov/ganglia/
export FILEMGR_URL=http://localhost:9000
export WORKFLOW_URL=http://localhost:9001
export RESMGR_URL=http://localhost:9002
export WORKFLOW_HOME=$DRAT_HOME/workflow
export FILEMGR_HOME=$DRAT_HOME/filemgr
export PGE_ROOT=$DRAT_HOME/pge
export PCS_HOME=$DRAT_HOME/pcs
export FMPROD_HOME=$DRAT_HOME/tomcat/webapps/fmprod/WEB-INF/classes/
export PATH=$JAVA_HOME/bin:$PATH
export SOLR_DRAT_URL=http://localhost:8080/solr/drat
export DRAT_EXCLUDE=""

#####  Copy and Paste this Block into the .bashrc of your deployment user account ##########

alias fmquery="java -Dorg.apache.oodt.cas.filemgr.properties=$FILEMGR_HOME/etc/filemgr.properties -Djava.ext.dirs=.$FILEMGR_HOME/lib org.apache.oodt.cas.filemgr.tools.QueryTool --url $FILEMGR_URL --lucene -query "

alias fmdel="java -Dorg.apache.oodt.cas.filemgr.properties=$FILEMGR_HOME/etc/filemgr.properties -Djava.ext.dirs=$FILEMGR_URL/lib org.apache.oodt.cas.filemgr.tools.DeleteProduct --fileManagerUrl $FILEMGR_URL --read"

alias metdump="java -Djava.ext.dirs=$FILEMGR_HOME/lib org.apache.oodt.cas.filemgr.tools.MetadataDumper --url $FILEMGR_URL --out . --productId "

Clone this wiki locally