Run the MapReduce program under Windows using Eclipse compilation Hadoop2.6.0/ubuntu

Source: Internet
Author: User

I. Introduction to the Environment

Host: Windows8

Virtual machine: Ubuntu14.04

hadoop2.6 Pseudo-Distribution: Build Tutorial http://blog.csdn.net/gamer_gyt/article/details/46793731

Eclipse:eclipse-jee-luna-sr2-win32-x86_64

II. Preparation Phase

Download Hadoop-eclipse-plugin-2.6.0.jar Online (click to download)

can also be self-compiled (online tutorials Quite a lot, can own Baidu or Google)

Iii. begin

    • Copy the compiled jar into the Eclipse plugin directory and restart eclipse
    • Configure the Hadoop installation directory

Windows->preference, Hadoop map/reduce, Hadoop installation directory

    • Configuring the Map/reduce View

Window->open Perspective, other->map/reduce click "OK"

Windows→show view→other->map/reduce locations-> Click "OK"

    • The console will have one more tab page for "Map/reduce Locations"

On the "Map/reduce Locations" tab, click the icon < elephant +> or right click on the blank, select "New Hadoop location ...", and the dialog box "new Hadoop locations ..." pops up, Configure the following: Change HA1 to your own Hadoop user

Then switch to the Advanced Parameters Options panel, which has a detailed configuration, remembering that it needs to be consistent with the configuration of Hadoop (configuration files in/usr/local/hadoop/etc/hadoop), as I configured the Hadoop.tmp.dir , you need to make changes.

This is true of almost all tutorials on the web, and it is true that Dfs Locations will appear in the upper-left corner of Eclipse when this tutorial is configured, as


But in fact, there will be a variety of problems, small series only I encountered and the solution presented

(1) Note: Copy the configuration file (Core-site.xml hdfs-site.xml log4j.properties) modified under Hadoop from the virtual machine to the SRC directory of the program

(2) Some files under DFS cannot be loaded, prompting permission denied error

Workaround: Add permissions to the HDFs directory file, HDFs Dfs-chnod 777/

Attached: Recommend a good Article http://www.aboutyun.com/thread-8780-1-1.html

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Run the MapReduce program under Windows using Eclipse compilation Hadoop2.6.0/ubuntu

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.