搭建Hadoop2.5.2环境

教程:http://blog.csdn.net/l1028386804/article/details/51536051


部署期间遇到最主要的一个问题:hdfs-site.xml 这个文件,不论怎么改都不生效。

现象是:执行hadoop namenode -format时,namenode的存放位置,是hadoop的默认路径;然后执行hadoop dfsadmin -report,提示java.net.ConnectException: Call To xxx:9000 failed on connection exception;同时50070端口也无法访问。

解决办法:

①关闭防火墙

service iptables status
service iptables stop

②修改/etc/hosts文件

不要保留以下两项。修改完后最好重启
127.0.0.1 localhost
::1 localhost6 Master

③hdfs-site.xml这个文件的内容,我使用的和教程中不太一样


    dfs.namenode.name.dir
    file:/home/hadoop/name/hadoop-2.5.2/name
 

 
    dfs.datanode.data.dir
    file:/home/hadoop/data/hadoop-2.5.2/data
 

 
    dfs.replication
    2
 

你可能感兴趣的:(Nutch2.3.1,hadoop,centos,namenode)