2011-11-15 43 views
0

啓動守護進程我是新來的Hadoop,並試圖在pseudodistributed模式下配置Hadoop的,當我嘗試用下面的命令來啓動守護程序錯誤,而在Hadoop中

斌/ start-all.sh

和我得到以下信息

starting namenode, logging to /data/hadoop/hadoop-0.20.2/bin/../logs/hadoop-waqas-namenode-trinity.out 
localhost: starting datanode, logging to /data/hadoop/hadoop-0.20.2/bin/../logs/hadoop-waqas-datanode-trinity.out 
localhost: starting secondarynamenode, logging to /data/hadoop/hadoop-0.20.2/bin/../logs/hadoop-waqas-secondarynamenode-trinity.out 
localhost: Exception in thread "main" java.lang.NumberFormatException: For input string: "localhost:9000" 
localhost:  at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) 
localhost:  at java.lang.Integer.parseInt(Integer.java:492) 
localhost:  at java.lang.Integer.parseInt(Integer.java:527) 
localhost:  at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:146) 
localhost:  at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:156) 
localhost:  at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:160) 
localhost:  at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:131) 
localhost:  at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.<init>(SecondaryNameNode.java:115) 
localhost:  at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:469) 
starting jobtracker, logging to /data/hadoop/hadoop-0.20.2/bin/../logs/hadoop-waqas-jobtracker-trinity.out 
localhost: starting tasktracker, logging to /data/hadoop/hadoop-0.20.2/bin/../logs/hadoop-waqas-tasktracker-trinity.out 

回答

0

檢查dfs.namenode.secondary.http-address財產hdfs-site.xml。當設置爲:localhost:50090時,我得到了同樣的錯誤。除非存在端口衝突,否則可以將其保留爲默認值0.0.0.0:50090

+0

感謝parveen。即使使用本地主機,我也能做到。在我的配置文件中有一些其他的小愚蠢的錯誤。 – waqas