Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to compile the hadoop-eclipse plug-in

Shulou Source: shulou.com Published: 2022-05-31 23:16:54 11月15日 Update

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!

Tags: Directory compilation configuration article is in version plug-in success console control wrong value interest variable just at the same time command address word official Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Shulou Technology vpn Shulou Information Huawei