Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hadoop 2.2 and Maven

Tags:

I wanted to switch from Hadoop 1.2.1 to Hadoop 2.2. In my project I'm using Maven and it can handle

  <dependency>     <groupId>org.apache.hadoop</groupId>     <artifactId>hadoop-core</artifactId>     <version>1.2.1</version> </dependency> 

woithout any problems, however changing the version to 2.2 in not working as it is not available in the central maven repository.

Any ideas how can I include Hadoop 2.2. in my maven-ized project?

like image 391
Jakub Avatar asked Nov 08 '13 09:11

Jakub


People also ask

What is Maven in Hadoop?

Posted in MapReduce by yeskay. Maven is a build management tool used to setup a Java project and create JAR files. It uses pom. xml file to setup dependencies a project needs, compile, and build final artifact like JAR file.

What is Hadoop Common jar?

Hadoop Common also contains the necessary Java Archive (JAR) files and scripts required to start Hadoop. The Hadoop Common package also provides source code and documentation, as well as a contribution section that includes different projects from the Hadoop Community. Hadoop Core.


1 Answers

Most of hadoop-core dependencies can be found in hadoop-client:

<dependency>     <groupId>org.apache.hadoop</groupId>     <artifactId>hadoop-client</artifactId>     <version>2.2.0</version> </dependency> 
like image 170
Ion Cojocaru Avatar answered Oct 08 '22 19:10

Ion Cojocaru