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.
================
hadoop程序问题:java.lang.IllegalArgumentException: Wrong FS: hdfs:/ expected file:///
hadoop需要把集群上的core-site.xml和hdfs-site.xml放到当前工程下的bin文件夹下面.