首页 > 系统服务 > 详细

Hadoop2.2 Eclipse

时间:2014-04-09 23:42:34      阅读:572      评论:0      收藏:0      [点我收藏+]

IP:  端口:

 

  1. Open eclipse:
    • Go to Windows -> Open Perspective -> Other -> Map/Reduce 
    • Click "New Hadoop Location..."
    • Fill in:
      • Location Name -- localhost
      • Map/Reduce Master
        • Host -- localhost
        • Port -- 54311 (related to the value of mapred.job.tracker in mapred-site.xml )
      • DFS Master 
        • Check "Use M/R Master Host"
        • Port -- 8020 (related to the value of fs.default.name in core-site.xml )
      • User name -- User (hadoop user name)
    • Then press the Finish button.
  2. File -> New -> Select a wizard -> Map/Reduce Project 
  3. Configure Hadoop Installation (select the Hadoop installation directory -> {Hadoop-Home})
  4. Then you can create your own Map/Reduce program and run it by choosing "Run on Hadoop". Have fun!

================

hadoop程序问题:java.lang.IllegalArgumentException: Wrong FS: hdfs:/ expected file:///

hadoop需要把集群上的core-site.xml和hdfs-site.xml放到当前工程下的bin文件夹下面.

Hadoop2.2 Eclipse,布布扣,bubuko.com

Hadoop2.2 Eclipse

原文:http://www.cnblogs.com/GrantYu/p/3654913.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!