You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mrunit.apache.org by Li Li <fa...@gmail.com> on 2015/12/08 06:09:48 UTC
can't download jar from central maven repository
http://central.maven.org/maven2/org/apache/mrunit/mrunit/1.1.0/mrunit-1.1.0.jar
404 error
I also tried to use it a maven project
<dependency>
<groupId>org.apache.mrunit</groupId>
<artifactId>mrunit</artifactId>
<version>1.1.0</version>
</dependency>
it still can't download jar
Re: can't download jar from central maven repository
Posted by Joseph Beard <jo...@josephbeard.net>.
Due to changes in the API that mrunit must compile against, you will need to use a classifier depending on the version of Hadoop that you are compiling against.
For Hadoop 1.x:
> <depdendency>
> <groupId>org.apache.mrunit</groupId>
> <artifactId>mrunit</artifactId>
> <version>1.1.0</version>
> <classifier>hadoop1</classifier>
> </dependency>
and for Hadoop 2.x:
> <depdendency>
> <groupId>org.apache.mrunit</groupId>
> <artifactId>mrunit</artifactId>
> <version>1.1.0</version>
> <classifier>hadoop2</classifier>
> </dependency>
See http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.apache.mrunit%22%20AND%20a%3A%22mrunit%22 <http://search.maven.org/#search%7Cgav%7C1%7Cg:%22org.apache.mrunit%22%20AND%20a:%22mrunit%22> for a list of exactly which artifacts are available.
Joe
—
Joseph Beard
joseph@josephbeard.net
> On Dec 8, 2015, at 12:09 AM, Li Li <fa...@gmail.com> wrote:
>
> http://central.maven.org/maven2/org/apache/mrunit/mrunit/1.1.0/mrunit-1.1.0.jar
> 404 error
>
> I also tried to use it a maven project
> <dependency>
> <groupId>org.apache.mrunit</groupId>
> <artifactId>mrunit</artifactId>
> <version>1.1.0</version>
> </dependency>
>
> it still can't download jar