Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to configure MapReduce Eclipse development environment in CentOS 7

Shulou Source: shulou.com Published: 2022-06-01 18:35:11 10月02日 Update

In view of how to configure the MapReduce Eclipse development environment in CentOS 7, this article introduces in detail the corresponding analysis and solutions, hoping to help more partners who want to solve this problem to find a more simple and easy way.

1. First download eclipse from the browser at the following URL

Http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/neon/1a/eclipse-jee-neon-1a-linux-gtk-x86_64.tar.gz

two。 Extract the eclipse installation package

First copy the eclipse installation package to / opt:

Cp / home/hadoop/Downloads/eclipse-jee-neon-1a-linux-gtk-x86_64.tar.gz / opt/

Then decompress:

Tar-zxvf eclipse-jee-neon-1a-linux-gtk-x86_64.tar.gz

3. Use symbols to connect directories

Ln-s / opt/eclipse/eclipse / usr/bin/eclipse

4. Create a desktop initiator

Vim / usr/share/applications/eclipse.desktop

Add the following code:

[Desktop Entry] Encoding=UTF-8Name=EclipseComment=EclipseExec=/usr/bin/eclipseIcon=/opt/eclipse/icon.xpmCategories=Application;Development;Java;IDEVersion=1.0Type=ApplicationTerminal=0

5. Download the Hadoop-Eclipse plug-in and pay attention to the corresponding hadoop version. My hadoop version is 2.7.3.

Download URL: http://download.csdn.net/detail/tondayong1981/9668289

6. Put the plug-in in the plugins directory of the extracted eclipse (here my full directory is / opt/eclipse/plugins)

7. Restart eclipse, then open Windows-Preferences, and set the hadoop installation path in the Hadoop Map/Reduce option on the left side of the window (my hadoop installation path is / home/hadoop/hadoop-2.7.3)

On 8.Eclipse, open Windows-Perspective-Open Perspective-Other, select MapReduce, click OK, and then configure MapReduce's Location name at General (where I filled in myhadoop), Map/Reduce Master (here I filled in Host:master,Port:9001), and DFS Master (here I filled in Port:9000). Just make sure that Map/Reduce Master and DFS Mastrer,Host and Port are configured to match the settings of core-site.xml.

9. After the above configuration, there will be a DFS Locations display at Project Explorer on the left side of eclipse, and you can see the storage directory of my hdfs and the files in it, as shown in the following figure:

This is the answer to the question about how to configure the MapReduce Eclipse development environment in CentOS 7. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

Tags: Configuration directory question environment development plug-in more version URL path help answer easy consistent easy download URL code content launcher guy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Microsoft vpn Redmi Shulou Technology