You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 12, 2021. It is now read-only.
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
Automated method
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:
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
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.