IP: 端口:
- Open
eclipse:
- Go to
Windows -> Open Perspective -> Other ->
Map/Reduce
- Click "New
Hadoop Location..."
- Fill
in:
- Location
Name -- localhost
- Map/Reduce
Master
- 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
原文:http://www.cnblogs.com/GrantYu/p/3654913.html