Configuring the Eclipse development Environment for Hadoop

Source: Internet
Author: User

Objective

In the previous article (click here to browse), we have described how to build a Hadoop operating environment under Ubuntu Kylin operating system, and now build an Eclipse development environment based on previous work.

Configuration

Development environment: Eclipse 4.2

Other same as Previous

First Step installation Eclipse4.2

Get Eclipse on the Eclipse website and extract it to the user directory.

Second step to compiling the Eclipse plugin for Hadoop

You can choose to use a plugin compiled by someone else (be aware that the Hadoop version number is consistent with the Eclipse version number at compile time), or you can compile it yourself (more cumbersome).

At first I was trying to compile myself, but the discovery project specified the JDK version to be used, and not the 1.8 I was using myself, so I decided to compile it with someone else (it should not run and specify the JRE version).

In addition, the download plugin to see clearly hadoop,eclipse is what version, to correspond clearly. Remember!

The third step is to configure the development environment

1. Replace all locations in the Hadoop configuration file with localhost aliases with the host IP.

2. Start Hadoop

3. Start Eclipse

4. Open Eclipse's window->preferences, you can see the following in the upper left corner of the Open dialog box:

  

5. After entering the Hadoop directory address in the input box, determine

6. Select the following in Eclipse's Window-->show view->other and click OK

  

7. Right-click->new Hadoop location in the Map/reduce locations window below the Eclipse interface:

  

8. In the Open dialog box, the top location name can be the configuration name and can be set according to your preference. The following two sets of host and port values are the IP, port values specified in Mapred-site.xml and Core-site.xml, respectively.

  Special Note: All use the IP address place, do not use the alias such as localhost, but the direct input IP.

  

9. Next click on the advanced Parameters on the upper dialog box, set the Hadoop.tmp.dir to the TMP subdirectory under the Hadoop directory (check if there is no such subdirectory, create a new one), and then determine:

  

The Eclipse left form appears similar to the following, indicating a successful configuration:

  

Summary

Configuration can also have some problems, welcome to exchange discussion.

   

Configuring the Eclipse development Environment for Hadoop

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.