Windows用Eclipse来开发hadoop的WordCount的helloworld

[学习笔记]

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的安装目录。

Windows用Eclipse来开发hadoop的WordCount的helloworld

在其中选中Map/ReduceLocations,点击Open后将成功添加Map/ReduceLocations窗口,点击右侧的小象图标创建New Hadoop Location,如下图:

Windows用Eclipse来开发hadoop的WordCount的helloworld

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

<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost:9000</value>
</property>

更多技术资讯可关注:gzitcast