Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add maven dependencies for mahout and hadoop?

I am doing a project that has dependencies on some classes from the mahout and hadoop core jars. I was using javac with the classpath option to include them before, but someone suggested to me that I should use maven to build my project instead. However, I am not sure how to add the dependencies to these jar files which are located in my /usr/local directory.

like image 792
Dan Q Avatar asked Nov 19 '25 04:11

Dan Q


1 Answers

   <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-core</artifactId>
            <version>0.20.205.0</version> <!-- or whatever version -->
        </dependency>
   <dependency>
        <groupId>org.apache.mahout</groupId>
        <artifactId>mahout-core</artifactId>
        <version>0.5</version>
    </dependency>
like image 114
Arnon Rotem-Gal-Oz Avatar answered Nov 21 '25 17:11

Arnon Rotem-Gal-Oz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!