-
Notifications
You must be signed in to change notification settings - Fork 1
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
.
- Start Apache™ OODT:
$DRAT_HOME/bin/oodt start
- Go!
$DRAT_HOME/bin/drat go $HOME/your-repo
This will crawl the repo, index it into Solr, and analyze it with MapReduce RAT.
If you would rather run the individual commands yourself, use the manual method:
-
Crawl the repository of interest, e.g.,
$HOME/your-repo
:
$DRAT_HOME/bin/drat crawl $HOME/your-repo
-
Index the crawled repo in Apache™ SOLR:
$DRAT_HOME/bin/drat index $HOME/your-repo
-
Fire off the partitioner and mappers:
$DRAT_HOME/bin/drat map
-
Fire off the reducer:
$DRAT_HOME/bin/drat reduce
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.