ubuntu下hadoop2.6在eclipse上的配置

1.复制hadoop-eclipse-plugin-2.6.0.jar插件到eclipse的plugins目录下(hadoop2.6的插件,在hadoop自带上没有,要上网下载,多试几个

如果是从ubuntu自带的软件中心安装elcipse的话,则安装目录为:/usr/share/eclipse/dropins/sdk/plugins/
不是在/usr/share/eclipse/plugins

sudo cp hadoop-eclipse-plugin-2.6.0.jar /usr/share/eclipse/dropins/sdk/plugins/

 
2.重启eclipse,配置Hadoop installation directory    

     如果插件安装成功,打开Windows—Preferences后,在窗口左侧会有Hadoop Map/Reduce选项,点击此选项,在窗口右侧设置Hadoop安装路径。

    

3.配置Map/Reduce Locations
     打开Windows—Open Perspective—Other 选择Map/Reduce,点击OK


4.在右下方看到Map/Reduce Locations,点击Map/Reduce Location选项卡,点击右边小象图标,打开Hadoop Location配置窗口:



注意:MR Master和DFS Master配置必须和mapred-site.xml和core-site.xml等配置文件一致

5.测试

用wordcount例子来测试,可参考http://www.cnblogs.com/aijianiula/p/3854372.html

转载于:https://www.cnblogs.com/aijianiula/p/4546021.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值