ClouderaHadoopMaven compilation and Installation Steps

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.