Hadoop2.2 Eclipse

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.
  • File -> New -> Select a wizard -> Map/Reduce Project 
  • Configure Hadoop Installation (select the Hadoop installation directory -> {Hadoop-Home})
  • 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

    上一篇:.NET微信开发 音频,地理位置JS SDK


    下一篇:Linux系统下利用crontab实现程序的鲁棒性