Skip to content

How to Run

Tyler Palsulich edited this page Aug 21, 2014 · 2 revisions

Here are the basic commands to run DRAT. Imagine you had a code repo, your-repo, that lives in $HOME/your-repo.

  1. Start Apache™ OODT:
    $DRAT_HOME/bin/oodt start

Automated method

  1. Go!
    $DRAT_HOME/bin/drat go $HOME/your-repo
    This will crawl the repo, index it into Solr, and analyze it with MapReduce RAT.

Manual method

If you would rather run the individual commands yourself, use the manual method:

  1. Crawl the repository of interest, e.g., $HOME/your-repo:
    $DRAT_HOME/bin/drat crawl $HOME/your-repo

  2. Index the crawled repo in Apache™ SOLR:
    $DRAT_HOME/bin/drat index $HOME/your-repo

  3. Fire off the partitioner and mappers:
    $DRAT_HOME/bin/drat map

  4. Fire off the reducer:
    $DRAT_HOME/bin/drat reduce

Other information

Please see $DRAT_HOME/bin/drat for the specifics of each command. Once finished, shut down OODT by running $DRAT_HOME/bin/oodt stop. For information on how to interact with DRAT, see this wiki page.

Clone this wiki locally