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]](../common/images/admon/important.png)
Important When removing and installing packages, rename those files the
/confdirectory that have.rpmsaveextension to original to retain the customized configs. Alternatively, you can also use the configuration files (under the/confdirectory) you backed up before upgrading.For Ubuntu or Debian:
apt-get install mahout
You must replace your configuration after upgrading. Copy
/etc/mahout/conffrom the template to the conf directory in mahout hosts.
To validate mahout:
Create a test user:
hadoop fs -put /tmp/sample-test.txt /user/testuser
Create a mahout test output directory:
hadoop fs -mkdir /user/testuser/mahouttest
Set up mahout to convert the plain text file
sample-test.txtinto a sequence file that is in the output directorymahouttest.mahout seqdirectory --input /user/testuser/sample-test.txt --output /user/testuser/mahouttest --charset utf-8

