1
回答
请教各位一个Hadoop的问题。我始终启动不了secondarynamenode
华为云数据库免费试用   
上网查过很多是说把mapred-site.xml中的配置弄到core-site.xml中,我试过也不行。感谢
holo@ubuntu:~/dev/HadoopDev/hadoop-0.20.2$ bin/start-all.sh 
starting namenode, logging to /home/holo/dev/HadoopDev/hadoop-0.20.2/bin/../logs/hadoop-holo-namenode-ubuntu.out
datanode2: starting datanode, logging to /home/holo/dev/HadoopDev/hadoop-0.20.2/bin/../logs/hadoop-holo-datanode-holo-VirtualBox.out
datanode1: starting datanode, logging to /home/holo/dev/HadoopDev/hadoop-0.20.2/bin/../logs/hadoop-holo-datanode-holo-VirtualBox.out
masters: starting secondarynamenode, logging to /home/holo/dev/HadoopDev/hadoop-0.20.2/bin/../logs/hadoop-holo-secondarynamenode-ubuntu.out
masters: Exception in thread "main" java.lang.NullPointerException
masters: 	at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:134)
masters: 	at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:156)
masters: 	at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:160)
masters: 	at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:131)
masters: 	at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.<init>(SecondaryNameNode.java:115)
masters: 	at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:469)
jobtracker running as process 4413. Stop it first.
datanode2: tasktracker running as process 5228. Stop it first.
datanode1: tasktracker running as process 6122. Stop it first.



举报
王骥威
发帖于5年前 1回/2K+阅
顶部