# bin/start-all.sh
starting namenode, logging to /opt/hadoop-0.20.2/logs/hadoop-root-namenode-akaedu-lucy021.out
localhost: starting datanode, logging to /opt/hadoop-0.20.2/logs/hadoop-root-datanode-akaedu-lucy021.out
localhost: starting secondarynamenode, logging to /opt/hadoop-0.20.2/logs/hadoop-root-secondarynamenode-akaedu-lucy021.out
starting jobtracker, logging to /opt/hadoop-0.20.2/logs/hadoop-root-jobtracker-akaedu-lucy021.out
localhost: starting tasktracker, logging to /opt/hadoop-0.20.2/logs/hadoop-root-tasktracker-akaedu-lucy021.out
停止:
# bin/stop-all.sh
no jobtracker to stop
localhost: stopping tasktracker
stopping namenode
localhost: stopping datanode
localhost: stopping secondarynamenode
查看log:
2012-07-16 11:03:56,392 INFO org.apache.hadoop.mapred.JobTracker: STARTUP_MSG:
2012-07-16 11:03:56,754 INFO org.apache.hadoop.mapred.JobTracker: Scheduler configured with (memSizeForMapSlotOnJT, memSizeForReduceSlotOnJT, limitMaxMemForMapTasks, limitMaxMemForReduceTasks) (-1, -1, -1, -1)
2012-07-16 11:03:57,686 FATAL org.apache.hadoop.mapred.JobTracker: java.net.BindException: Problem binding to loaclhost/202.106.195.30:9001 : Cannot assign requested address
at org.apache.hadoop.ipc.Server.bind(Server.java:190)
at org.apache.hadoop.ipc.Server$Listener.
at org.apache.hadoop.ipc.Server.
at org.apache.hadoop.ipc.RPC$Server.
at org.apache.hadoop.ipc.RPC.getServer(RPC.java:450)
at org.apache.hadoop.mapred.JobTracker.
at org.apache.hadoop.mapred.JobTracker.startTracker(JobTracker.java:183)
at org.apache.hadoop.mapred.JobTracker.startTracker(JobTracker.java:175)
at org.apache.hadoop.mapred.JobTracker.main(JobTracker.java:3702)
Caused by: java.net.BindException: Cannot assign requested address
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.apache.hadoop.ipc.Server.bind(Server.java:188)
... 8 more
2012-07-16 11:03:57,702 INFO org.apache.hadoop.mapred.JobTracker: SHUTDOWN_MSG:
请告诉我是什么原因,如何解决。