DataNode启动不成功——java.net.BindException: Port in use: localhost:0 Caused by: java.net.BindException: Cannot assign requested address解决办法

  爱折腾的人总是会出线各种奇怪的问题。记得之前听一位大师讲过,我们不能踩完前进路上的所有坑前进,而应该学会怎样避开前进路上的坑,踩得坑越多,可能你的经验越丰富,但是付出的时间代价可能不是经验能换来的。我很认同这句话,但是我们学习过程中难免会踩各种各样的坑,今天这个小小的坑,让我在坑里从上午10:00,一直折腾到下午16:00+,最后实在找不出来哪里问题,决定去问大神(也算是本项目组Hadoop专家),然而他也没遇到过,从一头雾水,到解决他只用了不到10分钟,在他的面前,我深深体会到了还再学校的技术小白和公司的技术骨干之间的鸿沟(这是个容易扯着蛋的鸿沟)。

一、问题出现的原因

  本来我的Hadoop2.7.2是在公司的电脑上进行配置的,因为自己回去要学习,所以就把台式机中的虚拟机都拷贝到笔记本中了,然后各种配置IP等相关的,然后就启动分布式环境了,命令:

  hadoop@master$ ${HADOOP_HOME}/sbin/start.dfs.sh

 现象:主节点的namenode、secondarynamenode启动成功,但是slave节点datenode启动不成功。

 查看slave的输出日志,显示如下:

2016-07-28 23:12:03,301 INFO org.apache.hadoop.http.HttpServer2: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context logs
2016-07-28 23:12:03,336 INFO org.apache.hadoop.http.HttpServer2: HttpServer.start() threw a non Bind IOException
java.net.BindException: Port in use: localhost:0
    at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:919)
    at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:856)
    at org.apache.hadoop.hdfs.server.datanode.web.DatanodeHttpServer.<init>(DatanodeHttpServer.java:104)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.startInfoServer(DataNode.java:759)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:1108)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:428)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2370)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2257)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2304)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2481)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2505)
Caused by: java.net.BindException: Cannot assign requested address
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:433)
    at sun.nio.ch.Net.bind(Net.java:425)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
    at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
    at org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:914)
    ... 10 more
……(此处省略了好多内容)
2016-07-28 23:12:03,356 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1
2016-07-28 23:12:03,363 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down DataNode at slave01/192.168.75.101
************************************************************/

二、日志分析

  很自然,从这个日志中提取两个关键的地方

  (1)java.net.BindException: Port in use: localhost:0

  (2)Caused by: java.net.BindException: Cannot assign requested address

  其中第一个是现象,是说端口被占用,到底哪个端口被占用,只给出了主机localhost,并且给出了localhost的端口0,因为配置都是在台式机上面配置的,并且经过测试都是可以用的,基本可以判断,端口被占用基本上是不可能发生的(这些都是自己猜测),那么是什么导致的的?

  第二个说明的失败导致的原因,说网络绑定异常,不能分配请求的地址,这个其实也没什么用。

三、自己的小经验

  对于master节点都启动成功,而datenode启动不成功,我们第一时间想到的就是namenode和datenode不一致导致的。于是我们将master的namenode进行格式化,格式化操作之前需要删除data文件夹,具体参考我之前的一篇博客:Hadoop2.7.x中所有的DataNode都启动不了解决办法

  但是发现还是不行,然后就各种百度,经过了一个多小时的时间,耐心也被消耗的差不多了,然后还是基本可以锁定在格式化,主从数据不一致这方面,然后我删除了namenode上面的defaultFS目录下的所有文件,我的是/opt/data/,我的core-site.xml配置如下图:

        aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAADLCAIAAAA6MRvuAAAVqklEQVR4nO2dvY7bOBeGXaRIM8AAgdSkCKZJYywQF74EIV+xRW7AF5BgMQZc5AICJMA2qazGRbq9gO1WXS4h/cB1rmKgryBFHZKHFCVREm2/DwQk5og/EvmKPzpHXP1PJwcA9GcFIQEwHggJgAhASABEAEICIAIQEgARgJAAiACEBEAEICQAIjBQSFlxfPH8dFdkkxZuIrLi+OL5+eVj6oVny5llxd3T8+r5efX8/OJYeM4EcfHc5Kw4JiGkLHt8+Swbx6qrQYiWNKbR2HdkfJpTwAvpsVo9HV9lWeeZF0Gad54ljpBeHZ9W1WMbM3t8+VzdZxGFJFPrlOgUt/6CqtOoiEvngu68h1Ah3VfPxlNwQiE1d9ZSV3WfZa+OTyvSd638kiuOL57NUdB9ZfZ7rjRp9I5O0spIFP6uSdkYg9lpqlKtmksOKKfzTFearjtvl/O+en55VEWltaDl1esy7TTZO//q+KQam2gMKln/nRcZ0egiU1kjYUXyBNo3mabZISQx6LKvZEIhPVbihrJCyvs8w+4rR0dspcCFUG0/vvQq1s5IDlarx6bw1hWRNO+rZ7aTYa+U7ZHsM11pWhGZcub6o1NcHf2rfkV9LlNPky05jULrnSm8s0hNYFOSXkViA+2iimuXV+HvkXyDQktI2WOlHi3tk4kLdFan0SGMFpJ84AU0OyaEPmxoqbgrsjPi+1guTY9KBwupU/n+cubco8HIV6or+DLZNF3XqLqRV8cnT7Nhi2REJyIPLVLg85dOVruHdvSRMx1s/zZeSDId0fS1Vh4gJG5OH54R38LYdYLrE5Lj1oULKSuOL56Or7pGPS4hNdGLuyfy+Asu0iRCUkmbc6T4q3askMQzWyz4tieoR05o+voIwf8UJLn3ngSrjKzBqgp0LGdHHdp50rQiMuXM2cG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" />

  此时删除/opt/data下所有的文件,然后在执行namenode格式化操作,然后启动成功。

  aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPgAAABMCAIAAADP6O0/AAAGvklEQVR4nO2dS8KrKhCEWRcLYj2uxs0wuu9leAeJ2g3VgImJGOqbnBPlTYlt07+6JSFO3oVZHZqDc85tR+ew/T/GKLL5Ke4p1h9z2LKqNHHyteOPep9VrWXGyfspLtu/S5y8SJI0PevaVk+h/Uk5c9i6u7dNZEhGLK+lpW2lcTPH2SzWTL/lSo7FyTvnva82Mc0ky2nq41W49IAh9GQm8/6IRDr9ltwaF3O88nL8FJ+ykzpXOsw1tiQl4JOyMtnDraI0/5Yond98vosVWxnxMCeJ6tpCKXKhrymL45eSdqs2/pfyptDj5N0OWKAbBGEKpUHocQohqHVoa1E+/0BvqP2qi0Ln651NsN5bSit6o8rtcSu00xS6lX7LhVoUJx9CaNcq7Flh/C/lHaHLO7lIZE3Ymyu6uC62s85P8TmyoM3pJMAVCBhkz59+isJsAfnx+KhfxrIMMYVeaCcUeqlfsnOgAWG2TtYbnFbR1+L+jtBlZ1LzVZoxb9noeZnW+MZ5LtuL6IpC7V9P+mkKqiLr3iwKNp9VGrDGrdBOywS3+7X1TfYrrm0P84FLM70ya+N/Ke+ZLvvN3E/z5J3LTiQjJ2+p0OCQx+fgXAhhqyGWk+vbdVmPogbY/sVStVXJXpJebjNDp4wxboV2ikpQa/J+LUDoRUPHBNyCDnX2q7QI/Sq6WxV+haLp8qNAoXdyVVLo59LR1H6fTOgdQaGT02hZ0d8T3PW20D1XsvPHrTYOh02Xrh3nCS88jB7kI0K3HmqrmT41LehhVD2NHq74gwsEsNHVk+QRhyiFXijwTZTX7nV32HmY7sVZeYSOL5dNQQPHBzcT+qOY8R5GsdDBoqUcaNhdGKb33IvznPgX1eZ/kkOtS9A1aLkX91JgKu3mh+1c4C+7bogxbqid+T6t4djMG4OE/th6axO6sfzj+coyXHMLaBW66BGDunSGSghANmg2NwvqQpd4Nl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rr9/OKN4OcXQSdlDyM/v/gT8POL6Ca/dzHy84u/AT+/mBtkz59+4ucXfwd+fhG+CewpBn5+8Wfg5xdh+xdL1VYlyI+emjqNZjoYt0I7RSW1N5bJWvIL2DR0fgN+fnFAiqbLj8LPL45DR1P7fRjURYagZ6ETchoUOhkCCp0MAYVOhoBCJ0NAoZMhoNDJEFDoZAgodDIEFDoZAgqdDIH7i5AB4IpOhsD9ofnzA1x9Mbfy93345wP8ex/+O46jyh9cLd0DUOUv8D+nIVBQS0ydnAAAAABJRU5ErkJggg==" alt="" />

四、错误再次出现

  错误的再次出现也意味着上述的方法行不通,然后从上午十点开始就一直折腾这个问题,中午也没睡午觉,到了下午16:00,实在解决不了了,决定去请教Hadoop布道师,他拿到这个问题,第一反映是为什么会出现这个问题,他自己也没遇到过,然后他就开始排错,最后修改了两处内容,其中第一处应该不是必要的,第二处是关键。

(1)在core-site.xml中添加了namenode 和 Datanode的目录地址,如下:

  

<!-- Put site-specific property overrides in this file. -->

<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://master:9000</value>
</property> <property>
<name>dfs.name.dir</name>
<value>/opt/data/namenode</value>
</property> <property> <name>dfs.data.dir</name>
<value>/opt/data/datanode</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/opt/data/tmp</value>
</property>
</configuration>

(2)重点,导致问题的根本原因,在/etc/hosts文件中

  之前不知道看谁的博客,说在hosts文件中删除多余的IP与主机名的对应关系(之前貌似也是ipc通信不成功,然后删除了127.0.0.1和0.0.0.1)之后就成为了如下的样子:

  DataNode启动不成功——java.net.BindException: Port in use: localhost:0 Caused by: java.net.BindException: Cannot assign requested address解决办法

  但是根据提示,(1)java.net.BindException: Port in use: localhost:0

  (2)Caused by: java.net.BindException: Cannot assign requested address

  他很自然的就想到了hosts文件的问题,就是找不到本地的Ip地址,然后将注释的东西改成如下的:
  aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqwAAACZCAIAAABliP9QAAAT40lEQVR4nO2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8nY07pvlMU5rH3tujWQAQAADyRE8MB5gEMOQc8mL9PQ9cNgzaZ3QqedVCE63rPP2Cju3444C57ehbUCxspoiYAug4RAABQN1ERcBdFF+s3SNSeweGAGIgAAIAnEt02+C4QAddi2fOaR44IAAB4ItV+phEB11LWnogAAIAnwmcaAACgURABAAAAjYIIAAAAaBREAAAAQKMgAgAAABoFEQAAANAoiAAAAIBGQQQAAAA0CiIAAACgURABAAAAjYIIAAAAaJT/Af50xjuS2xU4AAAAAElFTkSuQmCC" alt="" />
  这样再次格式化namenode节点:bin/hdfs namenode -format
  重启HDFS:sbin/start-dsf.sh
  然后成功:
      aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAANIAAABMCAIAAACXl34mAAAIjklEQVR4nO1dWYKsIAzsc3EgzsNpuAyH8X20S0IqEFxG7Zf6mlZZhDJAKjCfiSHHz4yY5fWYc/yEVCaJHLck9O9pKikoaQBKClvSpdD1x5wNz9/xQnzw5Rw580oKCx8BhWpmEYpw7nQhaIfoW1KA1XC8BgrthPlaell2ObRmG01jOmTtVKu5luB274Ww0K7R/Ywm3Yz6aNAO50MNq+M1UGhXUtg6Wf1h6POxeRi3aHSkJ8WWnPl47vbudeC0U6dw21LjU0/5NzAbiJcmGCQj+niOn0+MsZW7m7p3Qh1kHwC3ZD8Lp53jBjjtHDdA0I7OnE5xzxoWuxcDvNIj0Wtn66q9974lhbEOOd9RCmlXVeqBtBtdtKyJrqKdJu8Ix3snjzNoRxPUz7P12IgT32nHmn8g+8toRzKutJR5KX4O7YYhaPctYdjanY8B2oEPmrlQaKpKpVhvaVYKXv+WmysPSkmB9StNwb5lKJ3ofiHqIRRPIe+N0a1tJ9NKiobHCOSsGlpIu5CKmXaKacT9IhK0vnAr7Ui5pB1LKSTZWo7QZGc/b61vdK7DUICFdZR9UE3BrcjbAte/yidH4LOuzFolX9cCtZ12bEJddRwiNO6X7YEqi+9wGUatnfywDoZo7Bhk8bDWFNNinvT+UPsJinIzCZjNo6xofGPNQZ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hmFaIXE7yJ7U6Ve0cUkLvS9rjEO3wlOIGWGh3F1wcO4jmIHsrLOLYXXDa7cODulCDhwI4bsCTaef4WTjtHDfgH+lC9xKS0gSaAAAAAElFTkSuQmCC" alt="" />

五,错误感触

 (1)大神的高度是小白只能仰望的,也是自己努力的方向。
 (2)大牛花费10分钟解决的问题,小白花费一天解决不了,那是人家积累的结果,当然小白的耐心和毅力也值得赞扬。
 (3)博客上面好多都是小白写的,必然自己,这样子容易导致顾此失彼,不能盲目相信。
 (4)技术的道路是艰难的,要抬头仰望方向,低头稳步向前。
上一篇:android开发调用c++共享库so文件


下一篇:jmeter同步定时器