启动: cd /usr/lib/hadoop/hadoop-1.0.3
bin/start-all.sh 命令在普通模式下运行是这样的 wang@ubuntu:~$ cd /usr/lib/hadoop/hadoop-1.0.3 wang@ubuntu:/usr/lib/hadoop/hadoop-1.0.3$ bin/start-all.sh starting namenode, logging to /usr/lib/hadoop/hadoop-1.0.3/libexec/../logs/hadoop-wang-namenode-ubuntu.out localhost: Agent admitted failure to sign using the key. localhost: starting datanode, logging to /usr/lib/hadoop/hadoop-1.0.3/libexec/../logs/hadoop-wang-datanode-ubuntu.out localhost: Agent admitted failure to sign using the key. localhost: starting secondarynamenode, logging to /usr/lib/hadoop/hadoop-1.0.3/libexec/../logs/hadoop-wang-secondarynamenode-ubuntu.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 /usr/lib/hadoop/hadoop-1.0.3/libexec/../logs/hadoop-wang-jobtracker-ubuntu.out localhost: Agent admitted failure to sign using the key.
localhost: starting tasktracker, logging to /usr/lib/hadoop/hadoop-1.0.3/libexec/../logs/hadoop-wang-tasktracker-ubuntu.out wang@ubuntu:/usr/lib/hadoop/hadoop-1.0.3$ jps
4819 Jps
肯定不对了就这一个
在su root 模式下运行是
root@ubuntu:/usr/lib/hadoop/hadoop-1.0.3# bin/start-all.sh
starting namenode, logging to /usr/lib/hadoop/hadoop-1.0.3/libexec/../logs/hadoop-root-namenode-ubuntu.out
root@localhost's password:
额 要密码,我不知道怎么办了,因为初学,还是为别人弄的,我自己也有许多论文要看 没时间研究,所以希望大神给点提示看看怎么弄。
总之先谢了
|