How do I build/run this simple Mahout program without getting exceptions?

前端 未结 4 1033
走了就别回头了
走了就别回头了 2020-11-30 04:21

I would like to run this code which I found in Mahout In Action:

package org.help;

import java.io.IOException;
import java.util.ArrayList;
import java.util.         


        
4条回答
  •  执笔经年
    2020-11-30 04:58

    You need to use the "job" JAR file provided by Mahout. It packages up all the dependencies. You need to add your classes to it too. This is how all the Mahout examples work. You shouldn't put Mahout jars in the Hadoop lib since that sort of "installs" a program too deeply in Hadoop.

提交回复
热议问题