Configuring the Eclipse plugin for hadoop2.5.1 under FEDORA20

Source: Internet
Author: User

I am now putting the path of hadoop-2.5.1/opt/lib64/hadoop-2.5.1 below and then will hadoop-2.2.0 the path is/home/hadoop/download/hadoop-2.2.0, my eclipse path is/ Opt/programming/atd-bundle/eclipse.

Because the teacher needs us to write the MapReduce program, we now need to configure the Eclipse plugin for Hadoop. The previous installation of Hadoop under Windows has always had a puzzling problem, so simply install it directly under Linux. Linux is a little bit simpler.

Let's talk about how to configure it.

In fact, this configuration is not directly compiled hadoop2.5.1 SRC package, but with hadoop2.2.0 SRC packages compiled. There are two things that need to be downloaded, one is the Hadoop plugin source file, and the other is the installation ant (Fedora20 does not own).

  1. Download Hadoop2x-eclipse-plugin-master.zip, which is the plugin source file that needs to be compiled with Ant. Yes: Https://codeload.github.com/jaradgreen/hadoop2x-eclipse-plugin/zip/master
  2. Then install the Ant Build tool installed online, in Terminal input: Yum install ant, all the way to choose Yes or Y installation.
  3. Unzip the downloaded Hadoop2x-eclipse-plugin-master.zip, CD to the downloaded file directory, terminal input: Unzip Hadoop2x-eclipse-plugin-master.zip, and then one more folder in the current directory: Hadoop2x-eclipse-plugin-master
  4. Then CD Hadoop2x-eclipse-plugin-master/src/contrib/eclipse-plugin into the unpacked folder/hadoop2x-eclipse-plugin-master/src/ Contrib/eclipse-plugin directory, modify the Build.xml.
  5. Modify the compilation configuration file build.xml. Input Command VI build.xml
  6. Add <property name= "Eclipse.home" location= "/opt/programming/adt-bundle/eclipse" in the third line following the project tag in the Build.xml file ><!---This is to point out the installation directory for Eclipse
  7. <property name= "Hadoop.home" location= "/home/hadoop/download/hadoop-2.2.0"/><!--This is used to designate your hadoop2.2.0, Not 2.5.1, don't get mixed up.
  8. <property name= "Version" value= "2.5.1"/> <!--(Note: You change the installation location above according to your own hadoop2.2.0 and Eclipse path)-
  9. Then do ant compile, run ant command, ant jar-d eclipse.home=/opt/programming/adt-bundle/eclipse-d hadoop.home=/home/hadoop/Download/ Hadoop-2.2.0-d version=2.5.1
  10. Ant then compiles a jar file, under Hadoop2x-eclipse-plugin-master/build/contrib/eclipse-plugin, Named Hadoop-eclipse-plugin-2.5.1.jar and then copy it to the plugin folder under the Eclipse installation path, mine is/opt/programming/adt-bundle/eclipse/plugins This command is mv/home/hadoop/download/hadoop2x-eclipse-plugin-master/build/contrib/eclipse-plugin/ hadoop-eclipse-plugin-2.5.1.jar/opt/programming/adt-bundle/eclipse/plugins/make changes according to your own situation.
  11. Restart Eclipse, click Windows->show view->other->mapreduce Tools to select the Hadoop view, and then you can program it accordingly.
  12. Delete the hadoop-2.2.0, he has fulfilled his mission honorably.

Configuring the Eclipse plugin for hadoop2.5.1 under FEDORA20

Related Article

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.