Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to connect eclipse to hadoop2.6.0 under windows7

Shulou Source: shulou.com Published: 2022-06-01 15:08:20 10月03日 Update

This article mainly explains "how to connect eclipse to hadoop2.6.0 under windows7". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to connect eclipse to hadoop2.6.0 under windows7.

Compile the eclipse plug-in

Preparation tool: ant,eclipse,hadoop2.6.0, plug-in compilation package

Plug-in compilation package acquisition address: https://github.com/winghc/hadoop2x-eclipse-plugin

Download the zip package and extract the file.

In the\ master\ hadoop2x-eclipse-plugin-master\ src\ contrib\ eclipse-plugin directory of the extracted file

Open build.xml and modify

For

Failure to remove it may cause ant to be stuck at ivy-retrieve-common: when compiling.

Execute the ant command in the\ master\ hadoop2x-eclipse-plugin-master\ src\ contrib\ eclipse-plugin directory of the extracted file

The local directory of eclipse and the local directory of hadoop are filled in according to their actual location

Compiled successfully; the plug-in generation address is at

Under the decompressed file:\ master\ hadoop2x-eclipse-plugin-master\ build\ contrib\ eclipse-plugin

2.eclipse installs the plug-in and configures

Copy the generated hadoop-eclipse-plugin-2.6.0.jar to the plugins directory under eclipse

Start eclipse

Configure the hadoop installation directory

Window-> preference-> hadoop Map/Reduce-> Hadoop installation directory

Configure the Map/Reduce view

Window-> Open Perspective-> other- > Map/Reduce-> Click "OK"

Windows → show view → other- > Map/Reduce Locations- > Click "OK"

Pay attention to start the local telnet service

Check whether http://master:50070 can be accessed, that is, the hdfs management interface. Master is the IP address of master.

Open the baby elephant for configuration

The configuration end point is the location indicated by the four arrows shown in the diagram, Host: IP for master, port number you configured, port number of DFS Master, port number configured for you, User name: this piece I refer to other papers, it is said that according to the name of hadoop, I changed the user name of win7 to hadoop, and then filled in the hadoop.

At this point, I believe you have a deeper understanding of "how to connect eclipse to hadoop2.6.0 under windows7". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Configuration directories plug-ins compilations slogans files addresses locations content reality learning generation utility deeper success interests names commands places practicality Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Apple Shulou Information NVidia Redmi