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 compile the hadoop-eclipse plug-in

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

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces how to compile the hadoop-eclipse plug-in, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

1. Download hadoop-2.4, this version is now compiled by many people and put on the Internet, download it yourself.

2. Download and install Ant, and then download and install it from the official website. Of course, you also need to configure environment variables, as follows:

Cmd to the windows console, enter ant-version

If the following words appear, the installation is successful: Apache Ant (TM) version 1.9.4 compiled on April 29 2014

3. Download hadoop2x-eclipse-plugin-master at https://codeload.github.com/winghc/hadoop2x-eclipse-plugin/zip/master, and extract it to disk D after download.

4. Modify D:\ hadoop2x-eclipse-plugin-master\ ivy\ libraries.properties

Change hadoop.version=2.6.0 to hadoop.version=2.4.0

Change jackson.version=1.9.13 to jackson.version=1.8.8 because there is no 1.9.13 version of the jar package in hadoop-2.4

5. In the windows console, go to D:\ hadoop2x-eclipse-plugin-maste\ contrib\ eclipse-plugin directory and execute the following command:

# eclipse.home refers to your eclipse installation directory, and hadoop.home refers to downloading the compiled and extracted hadoop directory ant jar-Dversion=2.4.0-Declipse.home=D:\ development tools\ eclipse-jee-luna-SR2-win32-x86_64\ eclipse- Dhadoop.home=D:\ hadoop-2.4.0

6. If the actual build successful is compiled successfully, the compiled files will be located in the D:\ hadoop2x-eclipse-plugin-maste\ build\ contrib\ eclipse-plugin directory.

7. If the compilation fails, most cases are configured in libraries.properties, but there is no corresponding jar in the hadoop directory. If the version is incorrect, you can change the libraries.properties according to the jar in the hadoop directory. If it is configured in libraries.properties and there is no relevant jar in the hadoop directory, temporarily remove the jar configured in the libraries.properties. Of course, you also need to delete the corresponding configuration in D:\ hadoop2x-eclipse-plugin-master\ src\ contrib\ bulid.xml.

8. Put our compiled jar in the plugs directory in the eclipse installation directory, and restart eclipse

9. Eclipse is configured as follows

The directory configured is the directory of hadoop

10. Open Window = > show view = > other in eclipse, and select map/reduce loactions in mapreduce tools

11. At this point, we can build a new mapreduce project

Thank you for reading this article carefully. I hope the article "how to compile hadoop-eclipse plug-ins" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

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: 0

*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