14. Upgrade Mahout

Upgrade Mahout. On the Mahout client machines, execute the following command:

  • For RHEL/CentOS/Oracle Linux:

    yum upgrade mahout
  • For SLES:

    zypper remove mahout
    zypper se -s mahout 

    You should see Mahout in the output. Install Mahout:

    zypper install mahout

    [Important]Important

    When removing and installing packages, rename those files the /conf directory that have .rpmsave extension to original to retain the customized configs. Alternatively, you can also use the configuration files (under the /conf directory) you backed up before upgrading.

  • For Ubuntu:

    apt-get install mahout
  • You must replace your configuration after upgrading. Copy /etc/mahout/conf from the template to the conf directory in mahout hosts.

 14.1. Mahout Validation

To validate mahout:

  1. Create a test user:

    hadoop fs -put /tmp/sample-test.txt /user/testuser
  2. Create a mahout test output directory:

    hadoop fs -mkdir /user/testuser/mahouttest
  3. Set up mahout to convert the plain text file sample-test.txt into a sequence file that is in the output directory mahouttest.

    mahout seqdirectory --input /user/testuser/sample-test.txt --output /user/testuser/mahouttest --charset utf-8 


loading table of contents...