辅助Namenode无法启动

时间:2012-07-03 00:10:07

标签: java hadoop

设置hadoop版本1.0.3后出现此错误:

$斌/ start-all.sh

Warning: $HADOOP_HOME is deprecated.

starting namenode, logging to /var/log/hadoop/daley/hadoop-daley-namenode-datapath3.cise.ufl.edu.out
localhost: starting datanode, logging to /var/log/hadoop/daley/hadoop-daley-datanode-datapath3.cise.ufl.edu.out
localhost: starting secondarynamenode, logging to /var/log/hadoop/daley/hadoop-daley-secondarynamenode-datapath3.cise.ufl.edu.out
localhost: Exception in thread "main" java.lang.IllegalArgumentException: Does not contain a valid host:port authority: file:///
localhost:  at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:162)
localhost:  at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:198)
localhost:  at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:228)
localhost:  at org.apache.hadoop.hdfs.server.namenode.NameNode.getServiceAddress(NameNode.java:222)
localhost:  at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:161    )
localhost:  at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.<init>(SecondaryNameNode.java:129)
localhost:  at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:567)
starting jobtracker, logging to /var/log/hadoop/daley/hadoop-daley-jobtracker-datapath3.cise.ufl.edu.out
localhost: starting tasktracker, logging to /var/log/hadoop/daley/hadoop-daley-tasktracker-datapath3.cise.ufl.edu.out

我从谷歌获得的唯一解决方案是设置我设置为的fs.default.name    HDFS://本地主机:9100

1 个答案:

答案 0 :(得分:0)

根据您提供的错误信息,问题可能是辅助名称节点的端口已被占用,可能是同一台机器上的另一个hadoop系统。因此,设置配置fs.default.name是一个好方法。另一种方法是杀死占用端口的进程,这可能会导致另一个服务崩溃。