ubuntu14.01.1 搭建eclipse Hadoop开发环境

来源:互联网 发布:有线网络电视怎么连接 编辑:程序博客网 时间:2024/06/11 13:58

1.配置:

ubuntu 14.01.1hadoop2.7.1

2.将eclipse hadoop 插件放入eclipse安装文件下存放插件的eclipse/plugins目录下

3.启动eclipse

可以看见eclipse上出现的变化:左边视图中Project Explorer 出现DFS Locations

从Open Perspective打开视图Map/Reduce :进入Map/Reduce模式,下方出现了Map/Reduce Locations

4.指定Hadoop的安装目录

打开Preferences ,左边选择Hadoop Map/Recduce

5.配置DFS Locations

在Map/Reduce Locations 右键 new Hadoop Location

general 面板中:

1)Location Name:可以任意填,标识一个“Map/Reduce Location”
2)Map/Reduce Master(可以同右边)
Host:localhost

port:
3)DFS Master
Use M/R Master host:前面的勾上。(因为我们的NameNode和JobTracker都在一个机器上。)
Host:xx.xx.xx.xx(core-site.xml中ip)
Port:xxxx (core-site.xml中端口)
User name:hadoop(操作hadoop的用户)



可以看见环境已经配好

0 0