Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure MapReduce Eclipse development environment in CentOS 7

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 289

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report