This is section gives important hints for how to install and use Mahout.
Get Maven
- Get Maven
- Extract the distribution archive, i.e.
apache-maven-3.2.5-bin.tar.gzto the directory you wish to install Maven 3.2.5. These instructions assume you chose/usr/local/apache-maven. The subdirectory apache-maven-3.2.5 will be created from the archive. - In a command terminal, add the
M2_HOMEenvironment variable, e.g. exportM2_HOME=/usr/local/apache-maven/apache-maven-3.2.5. - Add the M2 environment variable, e.g. export
M2=$M2_HOME/bin. - Optional: Add the
MAVEN_OPTSenvironment variable to specify JVM properties, e.g.export MAVEN_OPTS="-Xms256m -Xmx512m". This environment variable can be used to supply extra options to Maven. - Add M2 environment variable to your path, e.g.
export PATH=$M2:$PATH. - Make sure that
JAVA_HOMEis set to the location of your JDK, e.g.export JAVA_HOME=/usr/java/jdk1.7.0_51and that$JAVA_HOME/binis in yourPATHenvironment variable. - Run
mvn --versionto verify that it is correctly installed.
Install Mahout
- Get Mahout from Github
- To compile, do
mvn -DskipTests clean install - To run tests do
mvn test - To set up your IDE, do
mvn eclipse:eclipseormvn idea:idea