2012-07-03 82 views
3

我收到此錯誤:二級Namenode會設立的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:// localhost:9100

回答

0

從您提供的錯誤信息來看,問題可能是二級namenode的端口已被佔用,可能是另一個hadoop系統在同一臺機器上。所以設置配置fs.default.name是一個好方法。另一種方法是殺死佔用端口的進程,這可能會導致另一個服務崩潰。