Command Line Upgrade
Also available as:
loading table of contents...

Configure, Start, and Validate Apache Mahout


The su commands in this section use keywords to represent the Service user. For example, "hdfs" is used to represent the HDFS Service user. If you are using another name for your Service users, you need to substitute your Service user name in each of the su commands.

Replace your configuration after upgrading. Copy /etc/mahout/conf from the template to the conf directory in mahout hosts.

To validate Apache Mahout:

  1. Create a test user:

    su - hdfs -c "dfs -put /tmp/sample-test.txt /user/testuser"
  2. 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