使用Eclipse编译运行MapReduce程序_Hadoop2.6.0_Ubuntu/CentOS
本教程介绍的是如何在 Ubuntu/CentOS 中使用 Eclipse 来开发 MapReduce 程序,在 Hadoop 2.6.0 下验证通过。虽然我们可以使用命令行编译打包运行自己的MapReduce程序,但毕竟编写代码不方便。使用 Eclipse,我们可以直接对 HDFS 中的文件进行操作,可以直接运行代码,省去许多繁琐的命令。
网址:http://dblab.xmu.edu.cn/blog/hadoop-build-project-using-eclipse/
该网页第三步如图
Host 改为:master。
报错:Output directory hdfs://master:9000/user/chen/output already
解决方案:删除文件output(2)
参考博客:http://blog.csdn.net/xiewendong93/article/details/46754507
结果示意图: