windows下搭建hadoop+eclipse开发环境 谁借莪1个温暖的怀抱¢ 2022-08-25 08:43 229阅读 0赞 我的环境:windows8+hadoop1.1.2+eclipse4.3(linux为centerOS6.4) ## 实现步骤 ## 1. 下载eclipse、hadoop,提取hadoop中的hadoop-eclipse-plugin-1.1.2.jar将其拷贝到eclipse中的plugins中(注 :如果没有找到hadoop-eclipse-plugin-1.1.2.jar,可以到网上下载对应的版本,也可以使用ant编译工具编译一个,此处不讲解怎样编译)![Center][] 2. 启动eclipse,添加hadoop的路径![Center 1][] 3. 打开mapReduce视图 4. 如图![Center 2][] 5. 新建New Hadoop location![Center 3][] 6. 编辑连接属性![Center 4][] 7. 完成配置,显示连接信息 8. 如图(只有hadoop集群启动了才能连接成功哦)![Center 5][] 9. 连接成功!可以新建项目了咯 10. 如图![Center 6][] 11. 至此配置已完成! 注: Location Name:可以任意其,标识一个"Map/Reduce Location" Map/Reduce Master Host:192.168.0.9(**Master.Hadoop**的IP地址, 与linux集群的mapred-site.xml文件中配置的一样) Port:9001 (与linux集群的mapred-site.xml文件中配置的一样) · DFS Master Use M/R Master host:前面的**勾上**。(因为我们的NameNode和JobTracker都在一个机器上。) Port:9000(与linux集群的core-site.xml文件中配置的一样) 注意:hadoop集群的linux机器必须开9000和9001端口 [Center]: /images/20220824/502f99d079f941afbdf3efce7afc7da4.png [Center 1]: /images/20220824/03e2c1080d96471d951b6a74c602736a.png [Center 2]: /images/20220824/ef84a178672f476196d544577aba6ea3.png [Center 3]: /images/20220824/1c9b86f97f3a42d8bbd5d05986850fea.png [Center 4]: /images/20220824/aa07dff212124ea28ca9248466c35d1e.png [Center 5]: /images/20220824/4d289a64d4fe4258a1fb2303b79c8bd4.png [Center 6]: /images/20220824/7fecd82c0237407783a784242f5ef823.png
还没有评论,来说两句吧...