Hi,all, *I have created a hadoop cluster on 2 hosts. When i enter "start-dfs.sh" on namenode host, the console shows this log:* ------------------------ starting namenode, logging to /usr/local/hadoop-0.20.2/bin/../logs/hadoop-root-namenode-jiangxd-pc.out localhost: starting datanode, logging to /usr/local/hadoop-0.20.2/bin/../logs/hadoop-root-datanode-jiangxd-pc.out dev1: starting datanode, logging to /usr/local/hadoop-0.20.2/bin/../logs/hadoop-root-datanode-sec-dev1.dev.sd.aliyun.com.out localhost: starting secondarynamenode, logging to /usr/local/hadoop-0.20.2/bin/../logs/hadoop-root-secondarynamenode-jiangxd-pc.out localhost: Exception in thread "main" java.net.BindException: Address already in use localhost: at sun.nio.ch.Net.bind(Native Method) localhost: at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119) localhost: at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) localhost: at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216) localhost: at org.apache.hadoop.http.HttpServer.start(HttpServer.java:425) localhost: at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:165) 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) --------------------------
*My configuration file is as following:* -------------------------- jiangxd-pc conf # cat core-site.xml <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <!-- Put site-specific property overrides in this file. --> <configuration> <property> <name>fs.default.name</name> <value>hdfs://localhost</value> </property> </configuration> jiangxd-pc conf # cat mapred-site.xml <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <!-- Put site-specific property overrides in this file. --> <configuration> <property> <name>mapred.job.tracker</name> <value>localhost:8001</value> </property> </configuration> -------------------------- Anyone help me?