标签:
1.准备jar包与安装eclipse.
2.将jar包拷贝到eclipse/plugin.
3.打开eclipse,在eclipse中配置hadoop home
windows—>preference,选择自己的hadoop安装路径:
4.windows—>show view—>other:
或者 windows—>open perspective—>other:
5.配置端口:
在location 处右键,new hadoop location:
6.配置完成
7.wordcount例子:
1)File—>new project—>Map/Reduce Project,输入工程名:
2)将WordCount.java程序添加到工程中。
3)WordCount.java处右键,Run As ,Run Configuration ,双击WordCount,配置要处理的文件路径:
4)点击Run:
5)完成后可在eclipse中查看结果:
完成。
标签:
原文地址:http://www.cnblogs.com/xp12/p/4234654.html