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 up mahout
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.You must replace your configuration after upgrading. Copy
/etc/mahout/conf
from 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.txt
into a sequence file that is in the output directorymahouttest
.mahout seqdirectory --input /user/testuser/sample-test.txt --output /user/testuser/mahouttest --charset utf-8