Install Eclipse on Ubuntu12.10 and run the first MapReduce program WordCount on it

Source: Internet
Author: User
Install Eclipse on Ubuntu12.10 and run the first MapReduce program WordCount on it. Download to download directory, tar-zxvfeclipse-java-juno-SR1-linux-gtk.ta

Install Eclipse on Ubuntu 12.10 and run the first MapReduce program WordCount on it.

First download eclipse from the official website, find eclipse for java, linux eclipse-java-juno-sr1-linux-gtk.tar.gz

Tar-zxvf eclipse-java-juno-SR1-linux-gtk.tar.gz-C .. the directory you want to decompress

Then, add the decompressed directory to the PATH, and enter eclipse on the terminal to start.

The next step is to install the Hadoop for eclipse plug-in. Check whether there is an eclipse-plugin directory under the contrib directory under your hadoop installation directory. If there is a contrib directory, it is the corresponding plug-in. If not, compile it by yourself (I will not compile it now). The source code is in the hadoop directory

Src/contrib/eclipse-plugin. My hadoop version is 1.1.0, if your and my version are the same, get plug-in hadoop-eclipse-plugin-1.1.0.jar here: http://pan.baidu.com/share/link? Consumer id = 434048 & uk = 487907638

After a plug-in is available, copy it to the plugins under the eclipse installation directory. Restart hadoop. Note that sometimes eclipse fails to load the plug-in. If so, run the eclipse-clean command.

After the plug-in is started, File-> New-> Project... if the Map/Reduce Project option appears, select next, and enter the Project name, it indicates that the plug-in has been installed successfully. If the Map/Reduce Project option appears, but an error is prompted after "next", it means that the plug-in you are using is not feasible. You must find the correct plug-in (some may compile the plug-in by themselves, ).

 

 

 

 

 

 

 

 

 

 

 

 

 

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.