Hadoop2.2 Eclipse
IP: 端口:
- 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文件夹下面.
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。