"Gandalf" win7x64 the Apache Hadoop2.2.0 Eclipse gadget in the environment

Source: Internet
Author: User

Goal: Compile the Eclipse plugin for Apache Hadoop2.2.0 in the win7x64 environmentEnvironment:Win7x64 Family Normal edition Eclipse-jee-kepler-sr1-win32-x86_64.zipapache Ant (TM) version 1.8.4 compiled on 2012java version " 1.7.0_45 "Reference article: http://kangfoo.u.qiniudn.com/article/2013/12/build-hadoop2x-eclipse-plugin/plugin source code download: https:// Github.com/winghc/hadoop2x-eclipse-plugin Prerequisites: Ant, jdk, Eclipse, Apache Hadoop 2.2.0 installation package are ready plug-in source package has been downloaded on the virtual machine has been deployedApache Hadoop 2.2.0 Environment Step 1:will beApache Hadoop 2.2.0 Install package Copy to random Windows folder, I use the folder isD:\Development_ProgramFiles_2014\hadoop-2.2.0 Remember: The entire path does not appear with spaces. Otherwise, the ant compilation process will be faulted.
Step 2(This step should be able to omit): Copy the directory hadooproot/etc/hadoop/the storage configuration file for the Hadoop cluster toD:\Development_ProgramFiles_2014\hadoop-2.2.0\etc under
Step 3:Execute cmd,Enter the plugin source code root folder. ExecutionCD Src/contrib/eclipse-plugin
Step 4: RunAnt jar-dversion=2.2.0 -declipse.home = D:\Development_ProgramFiles_2014\eclipse2014 -dhadoop.home=D:\Development_ProgramFiles_2014\hadoop-2.2.0 Note: The command needs to specify the target Eclipse installation folder, the Hadoop installation folder, to compile the plug-in. Remember: There are no spaces in the full path of the two folders.
Step 5: Then is the long wait, the main slow target:ivy-download. Ivy-resolve-common these two steps.the last generated plug-inHadoop2x-eclipse-plugin-master\build\contrib\eclipse-plugin\hadoop-eclipse-plugin-2.2.0.jar
Step 6:WillHadoop-eclipse-plugin-2.2.0.jar Copy to Eclipse's plugins folder, launch Eclipse
Step 7:window--"Preferences Configure the Hadoop root folder:
Note: Configure this path, however, in order to run the Mr Procedure. Eclipse can find the corresponding jar package.
Step 8:Open the MapReduce view:
Configure location:

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvznvsb25nzmjp/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast "style=" border:none; max-width:100% ">
Note: The MR master and DFS master configurations must be consistent with the configuration files such as Mapred-site.xml and Core-site.xml.
Step 9: Open Project Explorer. To view the HDFs file system:


Step Ten: create a new MapReduce project

To create a MapReduce program:

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvznvsb25nzmjp/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast "style=" border:none; max-width:100% ">

Execute the MR Program. Tip You cannot connect to a cluster, please see the article:
"Gandalf" Win7 Environment Eclipse connection Hadoop2.2.0 http://blog.csdn.net/u010967382/article/details/25368313

Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.

"Gandalf" win7x64 the Apache Hadoop2.2.0 Eclipse gadget in the environment

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.