Blog

  • Mahout Installation And Setup

    Posted by Kartik Arora | Last Updated: 29-Dec-14

     

    Basics Of Mahout

    • Mahout is an open source machine learning library from Apache.

    • The algorithms it implements fall under the broad umbrella of machine learning or collective intelligence.

    • Scalable.

    • JAVA Library- It doesn’t provide a user interface, a prepackaged server, or an installer. It’s a framework of tools intended to be used and adapted by developers.

     

     

    Mahout Setup

     

    How To install Mahout in Local System(LINUX).

     

    • JAVA must be installed into your system.

    • Install Maven.

       

              ############## Apache-Maven #########
      	    export M2_HOME=/opt/apache-maven-3.2.3
      	    export M2=$M2_HOME/bin
      	     export PATH=$M2:$PATH
      	     export JAVA_HOME=$JAVA_HOME
             
      
       
      • Check if the Maven is properly installed.

          mvn --version
          
      
       
       
      • Download Apache Maven from Apache official website.

      • Extract the distribution archive, i.e. apache-maven-3.2.3-bin.tar.gz to the directory you wish to install Maven. These instructions assume you chose/usr/local/apache-maven. The subdirectory apache-maven-3.2.3 will be created from the archive.

      • Go to bashrc in terminal and set up the Maven Home path.

    • Install Mahout.

      #########Apache-Mahout############
      export MAHOUT_HOME="/opt/mahout-distribution-0.9"
      export PATH=$MAHOUT_HOME/bin:$PATH
      
      • Check if the Mahout is properly installed.

      	mvn install
      
      • Download Apache Mahout from Apache official website.

      • Extract it to your desired location.

      • Go to bashrc in terminal and set up the Mahout Home path.

        

    To use Mahout in a Maven Project one just need to add a Maven Dependency as below.

    
    		org.apache.mahout
    		mahout-core
    		0.9
    	
    

     

     

    Hope this Mahout Installation tutorials helped you in easily installing mahout into your system.

     

    Regards,

    Kartik Arora

     

Tags: mahout