BindException 无法指定被请求的地址
Caused by: java.net.BindException: Problem binding to [hadoop3:8096] java.net.BindException: 无法指定被请求的地址; For more details see: http://wiki.apache.org/hadoop/BindException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:824)
at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:735)
at org.apache.hadoop.ipc.Server.bind(Server.java:562)
at org.apache.hadoop.ipc.Server$Listener.<init>(Server.java:1035)
at org.apache.hadoop.ipc.Server.<init>(Server.java:2807)
at org.apache.hadoop.ipc.RPC$Server.<init>(RPC.java:960)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Server.<init>(ProtobufRpcEngine.java:421)
at org.apache.hadoop.ipc.ProtobufRpcEngine.getServer(ProtobufRpcEngine.java:342)
at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:802)
at org.apache.hadoop.yarn.factories.impl.pb.RpcServerFactoryPBImpl.createServer(RpcServerFactoryPBImpl.java:172)
at org.apache.hadoop.yarn.factories.impl.pb.RpcServerFactoryPBImpl.getServer(RpcServerFactoryPBImpl.java:131)
... 9 more
Caused by: java.net.BindException: 无法指定被请求的地址
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.apache.hadoop.ipc.Server.bind(Server.java:545)
... 17 more
2017-12-27 17:37:25,784 INFO org.apache.hadoop.yarn.server.nodemanager.NodeManager: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NodeManager at hadoop2/192.168.2.212
************************************************************/
[root@hadoop2 logs]# jps
22049 DataNode
23734 Jps
[root@hadoop2 logs]#
[root@hadoop3 ~]# netstat --numeric-ports -a -t
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:8040 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9864 0.0.0.0:* LISTEN
tcp 0 0 localhost:56873 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8042 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9866 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9867 0.0.0.0:* LISTEN
tcp 0 0 localhost:42859 0.0.0.0:* LISTEN
tcp 0 0 localhost:38923 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9868 0.0.0.0:* LISTEN
tcp 0 0 localhost:54572 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9870 0.0.0.0:* LISTEN
tcp 0 0 localhost:47666 0.0.0.0:* LISTEN
tcp 0 0 localhost:44918 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 localhost:38871 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8088 0.0.0.0:* LISTEN
tcp 0 0 localhost:36248 0.0.0.0:* LISTEN
tcp 0 0 localhost:53561 0.0.0.0:* LISTEN
tcp 0 0 localhost:48825 0.0.0.0:* LISTEN
tcp 0 0 localhost:34714 0.0.0.0:* LISTEN
tcp 0 0 localhost:42650 0.0.0.0:* LISTEN
tcp 0 0 localhost:38811 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8030 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8031 0.0.0.0:* LISTEN
tcp 0 0 hadoop3:8096 0.0.0.0:* LISTEN
tcp 0 0 hadoop3:8032 0.0.0.0:* LISTEN
tcp 0 0 hadoop3:9088 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:46176 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8033 0.0.0.0:* LISTEN
tcp 0 0 localhost:40321 0.0.0.0:* LISTEN
tcp 0 0 localhost:55651 0.0.0.0:* LISTEN
tcp 0 0 hadoop3:9088 hadoop1:54645 ESTABLISHED
tcp 0 0 hadoop3:42200 116.255.203.53:80 ESTABLISHED
tcp 0 0 hadoop3:9088 hadoop3:43541 ESTABLISHED
tcp 0 0 hadoop3:41439 hadoop1:22 TIME_WAIT
tcp 0 0 hadoop3:34535 222.76.210.142:80 ESTABLISHED
tcp 0 0 hadoop3:56969 116.255.203.53:80 ESTABLISHED
tcp 0 0 hadoop3:52480 hadoop3:8031 ESTABLISHED
tcp 0 0 hadoop3:41443 hadoop1:22 TIME_WAIT
tcp 0 0 hadoop3:44670 116.255.203.53:80 ESTABLISHED
tcp 0 0 localhost:46176 localhost:35759 ESTABLISHED
tcp 0 0 hadoop3:22 192.168.2.102:63569 ESTABLISHED
tcp 0 0 hadoop3:51653 116.255.203.53:80 ESTABLISHED
tcp 0 0 hadoop3:39906 hadoop3:22 TIME_WAIT
tcp 0 436 hadoop3:22 192.168.2.102:63487 ESTABLISHED
tcp 0 0 hadoop3:38193 116.255.203.53:80 ESTABLISHED
tcp 0 0 hadoop3:43541 hadoop3:9088 ESTABLISHED
tcp 0 2712 hadoop3:22 192.168.2.102:51678 ESTABLISHED
tcp 0 0 localhost:35759 localhost:46176 ESTABLISHED
tcp 0 0 hadoop3:22 192.168.2.102:64330 ESTABLISHED
tcp 0 0 hadoop3:44867 hadoop2:22 TIME_WAIT
tcp 0 1 hadoop3:52937 61.164.108.182:80 SYN_SENT
tcp 0 0 hadoop3:57631 116.255.203.53:80 ESTABLISHED
tcp 0 0 hadoop3:38345 116.255.203.53:80 ESTABLISHED
tcp 0 0 hadoop3:39903 hadoop3:22 TIME_WAIT
tcp 0 0 hadoop3:45617 43.247.184.242:80 ESTABLISHED
tcp 0 1 hadoop3:50148 114.113.158.213:80 SYN_SENT
tcp 0 0 hadoop3:44862 hadoop2:22 TIME_WAIT
tcp 0 0 hadoop3:8031 hadoop3:52480 ESTABLISHED
tcp 0 0 hadoop3:50321 116.255.203.53:80 ESTABLISHED
tcp 0 0 hadoop3:39899 hadoop3:22 TIME_WAIT
tcp 0 0 hadoop3:50700 59.110.203.226:3306 ESTABLISHED
tcp 0 0 hadoop3:22 192.168.2.102:51675 ESTABLISHED
tcp 0 0 hadoop3:36735 116.255.203.53:80 ESTABLISHED
tcp 0 0 hadoop3:22 192.168.2.102:51674 ESTABLISHED
tcp 0 0 hadoop3:22 192.168.2.102:62990 ESTABLISHED
tcp 0 0 hadoop3:57034 116.255.203.53:80 ESTABLISHED
tcp 0 0 hadoop3:33928 116.255.203.53:80 ESTABLISHED
tcp 0 0 hadoop3:60794 43.247.184.242:80 ESTABLISHED
tcp 0 0 hadoop3:9088 hadoop2:52590 ESTABLISHED
tcp 0 0 hadoop3:39900 hadoop3:22 TIME_WAIT
tcp 0 0 hadoop3:22 192.168.2.102:52590 ESTABLISHED
tcp 0 0 hadoop3:22 192.168.2.102:52086 ESTABLISHED
tcp 0 0 hadoop3:22 192.168.2.102:63117 ESTABLISHED
tcp6 0 0 localhost:56873 [::]:* LISTEN
tcp6 0 0 localhost:42859 [::]:* LISTEN
tcp6 0 0 localhost:38923 [::]:* LISTEN
tcp6 0 0 localhost:54572 [::]:* LISTEN
tcp6 0 0 localhost:47666 [::]:* LISTEN
tcp6 0 0 [::]:22 [::]:* LISTEN
tcp6 0 0 localhost:38871 [::]:* LISTEN
tcp6 0 0 localhost:36248 [::]:* LISTEN
tcp6 0 0 localhost:53561 [::]:* LISTEN
tcp6 0 0 localhost:48825 [::]:* LISTEN
tcp6 0 0 localhost:34714 [::]:* LISTEN
tcp6 0 0 localhost:42650 [::]:* LISTEN
tcp6 0 0 localhost:38811 [::]:* LISTEN
tcp6 0 0 localhost:40321 [::]:* LISTEN
tcp6 0 0 localhost:55651 [::]:* LISTEN
[root@hadoop3 ~]#
问题
【从节点无法请求主节点的nodemanager地址,但是主节点的nodemanager可以tcp 0 0 hadoop3:8096 0.0.0.0:* LISTEN 监听任意ip的任意端口 】
【stop-all.sh关闭hadopp所有组件,则8096端口消失】
上一次登录:三 12月 27 17:37:27 CST 2017pts/24 上
[root@hadoop3 hadoop]# cat etc/hadoop/yarn-site.xml
<?xml version="1.0"?>
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. See accompanying LICENSE file.
-->
<configuration>
<!-- Site specific YARN configuration properties -->
<property>
<name>yarn.resourcemanager.address</name>
<value>hadoop3:8032</value>
</property>
<property>
<name>yarn.nodemanager.address</name>
<value>hadoop3:8096</value>
</property>
</configuration>
[root@hadoop3 hadoop]#
BindException 无法指定被请求的地址的更多相关文章
- java.net.NoRouteToHostException:无法指定被请求的地址
最近在做一个新项目的poc压测的时候发现了如下问题: TPS一直突破不了5000,按照计算理论上应该可以达到8000 tps/s左右的,查看数据库端口情况,吓一跳... netstat -ant | ...
- java.net.NoRouteToHostException: 无法指定被请求的地址
今天压力测试时, 刚开始出现了很多异常, 都是 java.net.NoRouteToHostException: Cannot assign requested address. 经网上查资料, 是 ...
- PHP为fopen,file_get_contents等函数请求web地址时增加Http头的方法
我们在使用fsockopen时可以方便的自定义自己请求的http头内容来访问某些对客户端请求头有特殊限制的网站,但是使用fopen,file_get_contents等函数请求web地址时怎么来灵活定 ...
- 程序启动的目录不一样.ajax请求的地址跳转会出现的问题
程序启动的目录不一样.ajax请求的地址跳转会出现的问题启动 frontend/web/启动 frontend/ $.ajax({ url:"<?php echo Yii::$app- ...
- 服务端如何获取客户端请求IP地址
服务端获取客户端请求IP地址,常见的包括:x-forwarded-for.client-ip等请求头,以及remote_addr参数. 一.remote_addr.x-forwarded-for.cl ...
- 把post请求的地址粘贴到浏览器地址栏敲回车报错405[Method Not Allowed]
为什么把post请求的地址粘贴到浏览器地址栏敲回车会报405?原因:在浏览器地址栏敲回车,浏览器默认是以get方式发送请求,而你的请求是post,这样当然会报405了: 405:方法不允许,不支持ge ...
- 服务端如何安全获取客户端请求IP地址
服务端如何获取客户端请求IP地址,网上代码一搜一大把.其中比较常见有x-forwarded-for.client-ip等请求头,及remote_addr参数,那么为什么会存在这么多获取方式,以及到底怎 ...
- 获取客户端的请求IP地址
获取客户端的请求IP地址 package com.microClass.util; import javax.servlet.http.HttpServletRequest; import java. ...
- 伪造Http请求IP地址
注意:伪造Http请求IP地址一般为非推荐使用手段 一般使用:简单投票网站重复投票,黑别人网站 在项目开发中(web项目),我负责的系统(简称PC),需要调其它系统接口,并且该系统需要获取客户端(浏览 ...
随机推荐
- python中unicode, hex, bin之间的转换
python中unicode, hex, bin之间的转换 背景 在smb中有个feature change notify, 需要改动文件权限dacl,然后确认是否有收到notify.一直得不到这个d ...
- Python之阻塞IO模型与非阻塞IO模型
Python之阻塞IO模型与非阻塞IO模型 IO模型 1 阻塞IO: 全程阻塞 2 非阻塞IO: 发送多次系统调用: 优点:wait for data时无阻塞 缺点:1 系统调用太多 2 数据不是实时 ...
- POJ 3660 Cow Contest(求图的传递性)
题意: 给定n头牛, 然后有m个比较, 求出有多少头牛能确定自己的排名. 分析: 假设有一头牛a, 有ki头牛强于自己, kj头牛弱于自己, ki + kj == n-1时, 那么这头牛的排名就确定了 ...
- luogu4035 [JSOI2008]球形空间产生器
如果单按照距离相等的话既是高次也没有半径,所以因为给了 \(n+1\) 组点就想到两两做差. 假如一组点是 \(\{a_i\}\) 一组是 \(\{b_i\}\),我们能轻易地得出 \[\sum_{i ...
- linux 在当前目录下查找一个,或者多个文件
1.find ./ -name "y*" 查找以y开头的文件. find ./ -name "*sql*" 查找包含 sql 的文件名 2.查找redis su ...
- Kubernetes网络设计原则
在配置集群网络插件或者实践K8S 应用/服务部署请时刻想到这些原则: 1.每个Pod都拥有一个独立IP地址,Pod内所有容器共享一个网络命名空间 2.集群内所有Pod都在一个直接连通的扁平网络中,可通 ...
- 【2018 Multi-University Training Contest 2】
01: 02: 03: 04:https://www.cnblogs.com/myx12345/p/9394511.html 05: 06: 07:https://www.cnblogs.com/my ...
- <转>C#中线程的学习
原文发布时间为:2008-11-15 -- 来源于本人的百度文章 [由搬家工具导入] http://hi.baidu.com/cyap/blog/category/%B6%E0%CF%DF%B3%CC ...
- redis哨兵模式配置
java对redis的读写 依赖包:jedis.jar maven下: <!-- https://mvnrepository.com/artifact/redis.clients/jedis - ...
- PAT (Advanced Level) 1036. Boys vs Girls (25)
简单题. #include<iostream> #include<cstring> #include<cmath> #include<algorithm> ...