当前位置: 移动技术网 > IT编程>数据库>其他数据库 > Windows用Eclipse来开发hadoop的WordCount的helloworld

Windows用Eclipse来开发hadoop的WordCount的helloworld

2019年08月30日  | 移动技术网IT编程  | 我要评论

[学习笔记]

2.win7用eclipse来开发hadoop的wordcount的helloworld
网上下载hadoop-eclipse-plugin-2.7.4.jar,将该jar包拷贝到eclipse安装目录下的dropins文件夹下,我的目录是c:\users\test\eclipse\jee-oxygen\eclipse\dropins,然后重启eclipse就可以看到mapreduce选项了。
2)启动eclipse,点开windows->preferences,弹出如下对话框,设置hadoop的安装目录。

在其中选中map/reducelocations,点击open后将成功添加map/reducelocations窗口,点击右侧的小象图标创建new hadoop location,如下图:

port=9000信息一定要与core-site.xml文件中的配置信息一致,这样底下的dfslocations就能显示出这个hdfs的根目录下的东西了。

<property>
<name>fs.defaultfs</name>
<value>hdfs://localhost:9000</value>
</property>
文章转载自原文:

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网