Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Hadoop2.4.0 Eclipse plug-in making     - C ++ complex class of operator overloading (Programming)

- Ubuntu 15.10 / 14.04 install subtitling software Aegisub (Linux)

- VMware virtual machine operating system log Error in the RPC receive loop resolve (Linux)

- Linux console password solution (Programming)

- Installation on Ubuntu class Winamp audio player Qmmp 0.9.0 (Linux)

- The method of CentOS-7.0. The installation and configuration of Tomcat-7 (Server)

- Java interview questions in nine radio (Programming)

- Oracle first Automated Installation Packages (Database)

- CentOS 6.5 opens the Xmanager Remote Desktop login (Linux)

- Ubuntu is not in the sudoers file problem solving (Linux)

- iptables allow only specific ip address to access the specified port (Linux)

- Oracle Linux 5.5 (64bit) Install Oracle 11gR2 RAC detailed tutorial (Database)

- Ubuntu System Log Configuration / var / log / messages (Linux)

- OGG-03510 Problem (Database)

- Setup Qt development environment under Linux (Linux)

- Orionode source Linux Mint installation (Linux)

- Android Activity launchMode (Programming)

- Ubuntu install Avast antivirus software (Programming)

- Linux partition command (Linux)

- MySQL binary packages install for RedHat Linux Enterprise 6.4 (Database)

  Hadoop2.4.0 Eclipse plug-in making
  Add Date : 2018-11-21      
  Stumbled two days loading Hadoop2.4.0 environment today can finally try to write a program, and thought for a moment, the right way, but one thing is certain, and that is the need to use eclipse, a morning check information, how to speak We have, finally lock this post, hadoop2x-eclipse-plugin. Github want to download, but in the end failed to download, there is a right of the page Download ZIP, with the download was successful. Below is say my whole production process it:

Want to import into eclipse in the making, but do not bother even if, under win7 64 Wei, JDK1.6, ANT1.8 environment for command line to run directly after the import into the
Yihuhuhuapiao, set the directory and hadoop directory eclipse, in no case modify any files directly run
D: SDK hadoop2x-eclipse-plugin-master src contrib eclipse-plugin > ant jar -Dversion = 2.4.0 -Declipse.home = D: WorkTools MyEclipse10 Common -Dhadoop.home = D: SDK hadoop-2.4.0

In the ivy-resolve-common place cards for about 138 minutes, the final build fails to see why there are two, one is not found 4 dependent packages, one can not find a core package
These are dependent on the package, it might be to change the path:

The core package is commons-lang-2.5.jar
Thought for a moment, think that four dependencies seem useless, he wanted to skip that step, step directly compile widget will modify the "hadoop2x-eclipse-plugin-master src contrib eclipse-plugin build .xml "file
removed depends

Core package to hadoop2.4 directory to find, discover hadoop2.4 use commons-lang-2.6.jar, then find the corresponding position in the build.xml to 2.6, this needs to be said that the author might be lazy and use the copy file is a variable in the configuration information directly using 2.5, not uniform, variable configuration information "hadoop2x-eclipse-plugin-master ivy libraries.properties" file, search for "commons-lang.version" the corresponding version to 2.6, well, run the command line ant, success at "hadoop2x-eclipse-plugin-master build contrib eclipse-plugin" generate widget
Holding excited with myeclipse10 plug in again failed (plugin simply does not appear), with eclipse3.7 in test failure (plug-in can occur, but it does not work, not new location)
Holding ready-2.2 plugin can be used normally
Later, after investigation and the reasons is because the plug-in myeclipse10 put the wrong place, not directly into the plugin Lane; eclipse3.7 plug-in failed because missing package
How to troubleshoot it? See the eclipse startup log, the log .log file in the workplace in .metadata files in eclipse3.7 reported in error can not initialize hadoop, very depressed, not much help, so he's on the official website to download the eclilpse the latest version of eclipse4.3.2, statements to the ant
D: SDK hadoop2x-eclipse-plugin-master src contrib eclipse-plugin> ant jar -Dversion = 2.4.0 -Declipse.home = D: WorkTools eclipse4.3.2 -Dhadoop.home = D: SDK hadoop-2.4.0

Yes, instead of to eclipse4.3.2 eclipse directory (this configuration is primarily aimed at generating jar package eclipse plugin provides support), after generation plug into eclipse4.3.2 of plugins in to start eclipse and observation log, an exception is thrown

java.lang.NoClassDefFoundError: org / apache / commons / collections / map / UnmodifiableMap

yes ~ toss and more than two hours, I finally caught up, to find this package in build.xml add on, do not forget to also add the configuration information is the lowermost file attribute, if you want to later convenience, the version number can also be in the form of variable libraries.properties maintained after buttoned, rerun the ant
Finally the line, at myeclipse10 also be used normally (so create a folder MyEclipse 10 dropins hadoop eclipse plugins, the plugin to throw this folder on the line below)