Upgrading HDP Manually
Also available as:
PDF
loading table of contents...

Configure, Start, and Validate Apache Mahout

Before you can upgrade Apache Mahout, you must have first upgraded your HDP components to the latest version (in this case, 2.4.2). This section assumes that you have already upgraded your components for HDP 2.4.2. If you have not already completed these steps, return to Getting Ready to Upgrade and Upgrade 1.3 Components for instructions on how to upgrade your HDP components to 2.4.2.

Upgrade Mahout. On the Mahout client machines, run 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

  • For Ubuntu:

    apt-get install mahout

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

To validate mahout:

  1. Create a test user:

    hadoop 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