Eclipse配置hadoop插件
1、导入hadoop-eclipse-plugin-2.5.1.jar进入eclipse的F:\software\eclipse\plugins目录下
2、在eclipse中window->preference-Hadoop Map/Reduce->添加hadoop-2.5.1的安装目录
3、在window->Show View中打开Map/Reduce Location,可以看到在底部生成新的选项,右键->New Hadoop Location
4、然后填写namenode在配置文件配置9000端口,
5、在window下配置hadoop环境变量:
6、在node1主机中的/opt/modules/hadoop-2.5.1/etc/hadoop/hdfs-sitex.xml文件添加
<property>
<name>dfs.permissions</name>
<value>false</value>
</property>
6.1、将node1主机中更改的hdfs-site.xml文件发送给node2、node3、node5主机
[root@node1 hadoop-2.5.1]# scp /opt/modules/hadoop-2.5.1/etc/hadoop/hdfs-site.xml root@node2:/opt/modules/hadoop-2.5.1/etc/hadoop/
hdfs-site.xml
[root@node1 hadoop-2.5.1]# scp /opt/modules/hadoop-2.5.1/etc/hadoop/hdfs-site.xml root@node3:/opt/modules/hadoop-2.5.1/etc/hadoop/
hdfs-site.xml
[root@node1 hadoop-2.5.1]# scp /opt/modules/hadoop-2.5.1/etc/hadoop/hdfs-site.xml root@node5:/opt/modules/hadoop-2.5.1/etc/hadoop/
hdfs-site.xml