ClouderaHadoopMaven compilation installation steps detailed tutorial OS: ubuntu12.041.download hadoop-0.20.20.2-cdh3u6.tar.gz source package http://www.cloudera. com2. install and configure maven source/etc/maven2/settings. xmlapt-getinstallmaven23. To search.maven.org search
Cloudera detailed tutorial on how to compile and install Hadoop Maven
OS: Ubuntu 12.04
1. Download the source package hadoop-0.20.2-cdh3u6.tar.gz
Http://www.cloudera.com
2. install and configure the maven Source
/Etc/maven2/settings. xml
Apt-get install maven2
3. Search for and download the missing jar package at search.maven.org.
Jar package list:
Org. apache. maven. doxia: doxia-module-confluence: jar: 1.1.3
Org. apache. maven. doxia: doxia-module-apt: jar: 1.1.3
Org. apache. maven. doxia: doxia-module-xdoc: jar: 1.1.3
Org. codehaus. plexus: plexus-utils: jar: 1.5.9
Org. apache. maven. surefire: surefire-booter: jar: 2.5
Org. apache. maven. plugins: maven-surefire-plugin: jar: 2.5
Search Method
G: "org. apache. maven. plugins" AND a: "maven-surefire-plugin" AND v: "2.5"
GroupIP artifact version
4. Install the jar package
Mvn install: install-file-DgroupId = org. apache. maven. doxia-DartifactId = doxia-module-confluence-Dversion = 1.1.3-Dpackaging = jar-Dfile =/path/to/file
You must specify the groupID, artifactID, and version
5. Modify cloudera/maven-packaging/pom. xml
To solve the following ERROR in the package process
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal 'org. apache. maven. plugins: maven-surefire-plugin: 2.5: test': Unable to load the mojo 'org. apache. maven. plugins: maven-surefire-plugin: 2.5: test' in the plugin 'org. apache. maven. plugins: maven-surefire-plugin '. A required class is missing: org/apache/maven/surefire/util/NestedCheckedException
Org. apache. maven. surefire. util. NestedCheckedException
Mvn install: install-file-DgroupId = org. apache. maven. plugins-DartifactId = maven-surefire-plugin-Dversion = 2.16-Dpackaging = jar-Dfile =/path/to/file
A required class is missing: org/apache/maven/surefire/util/NestedCheckedException
Add the plugin configuration in cloudera/maven-packaging/pom. xml.
Org. apache. maven. plugins
Maven-surefire-plugin
True
2.16
6. Compile hadoop
Mvn-f cloudera/maven-packaging/pom. xml package-DskipTests = true
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
For more information about Hadoop, see Hadoop topic page http://www.linuxidc.com/topicnews.aspx? Tid = 13