Fedora 20 compile the Hadoop-eclipse 1.1.2 plug-in (Hadoop Development Environment)

Source: Internet
Author: User

Build a Hadoop development environment for Fedora 20

1. configuration information:

Operating System: fedora 20X86

Eclipse version: eclipse-jee-helios-SR2-linux-gtk.tar.gz (preferably use Galileo or Helios, otherwise there may be compatibility issues)

Hadoop version: hadoop-1.1.2.tar.gz

Ant: apache-ant-1.9.3-bin.tar.gz

2. Compile the hadoop-eclipse-plugin-1.1.2.jar

2.1 modify the build-contrib.xml file for the $ {hadoop. root}/src/contrib directory and add eclipse paths and hadoop version information

<Property name = "eclipse. home" location = "/hugl/Android/eclipse"/>
<Property name = "version" value = "1.1.2"/>

:

2.2 modify $ {hadoop. root}/src/contrib/eclipse-plugin directory build. xml file. Add the jar dependency of hadoop-core to the path node with the id of classpath, as shown in the following record.

<Pathelement location = "$ {hadoop. root}/hadoop-core-1.1.2.jar"/>

:

At the same time, find the target whose name is jar and package the corresponding jar file into the lib directory of the plug-in.

Replace the original <copy file = "$ {hadoop. root}/build/hadoop-core-$ {version }. jar "tofile =" $ {build. dir}/lib/hadoop-core.jar "verbose =" true "/>
<Copy file = "$ {hadoop. root}/build/ivy/lib/Hadoop/common/commons-cli-$ {commons-cli.version }. jar "todir =" $ {build. dir}/lib "verbose =" true "/> comment out the two rows and add the following results here:

<Copy file = "$ {hadoop. root}/hadoop-core-$ {version }. jar "tofile =" $ {build. dir}/lib/hadoop-core.jar "verbose =" true "/>
<Copy file = "$ {hadoop. root}/lib/commons-cli-$ {commons-cli.version }. jar "todir =" $ {build. dir}/lib "verbose =" true "/>
<Copy file = "$ {hadoop. root}/lib/commons-lang-2.4.jar" todir = "$ {build. dir}/lib" verbose = "true"/>
<Copy file = "$ {hadoop. root}/lib/commons-configuration-1.6.jar" todir = "$ {build. dir}/lib" verbose = "true"/>
<Copy file = "$ {hadoop. root}/lib/jackson-mapper-asl-1.8.8.jar" todir = "$ {build. dir}/lib" verbose = "true"/>
<Copy file = "$ {hadoop. root}/lib/jackson-core-asl-1.8.8.jar" todir = "$ {build. dir}/lib" verbose = "true"/>
<Copy file = "$ {hadoop. root}/lib/commons-httpclient-3.0.1.jar" todir = "$ {build. dir}/lib" verbose = "true"/>

:

 

  • 1
  • 2
  • Next Page

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.