ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

hadoop启动时,报错Name or service not known connect to host the port 22: Connection refused

2020-03-05 22:05:00  阅读:316  来源: 互联网

标签:Name 22 refused Connection service 报错 ssh port connect


启动时,报如下内容

It’s highly recommended that you fix the library with 'execstack -c ‘, or link it with ‘-z noexecstack’.
Tony001]
sed: -e expression #1, char 6: unknown option to s' HotSpot(TM): ssh: Could not resolve hostname hotspot(tm): Name or service not known warning:: ssh: Could not resolve hostname warning:: Name or service not known -c: Unknown cipher type 'cd' 'execstack: ssh: Could not resolve hostname 'execstack: Name or service not known noexecstack'.: ssh: Could not resolve hostname noexecstack'.: Name or service not known '-z: ssh: Could not resolve hostname '-z: Name or service not known now.: ssh: Could not resolve hostname now.: Name or service not known It's: ssh: Could not resolve hostname it's: Name or service not known <libfile>',: ssh: Could not resolve hostname <libfile>',: Name or service not known tony@tony001's password: Tony001: starting namenode, logging to /home/tony/app/hadoop-2.4.1/logs/hadoop-tony-namenode-Tony001.out Java: ssh: Could not resolve hostname java: Name or service not known You: ssh: Could not resolve hostname you: Name or service not known to: ssh: Could not resolve hostname to: Name or service not known it: ssh: Could not resolve hostname it: Name or service not known link: ssh: Could not resolve hostname link: Name or service not known you: ssh: Could not resolve hostname you: Name or service not known guard.: ssh: connect to host guard. port 22: Connection refused which: ssh: connect to host which port 22: Connection refused have: ssh: connect to host have port 22: Connection refused VM: ssh: connect to host vm port 22: Connection refused try: ssh: connect to host try port 22: Connection refused 64-Bit: ssh: connect to host 64-bit port 22: Connection refused VM: ssh: connect to host vm port 22: Connection refused Server: ssh: connect to host server port 22: Connection refused have: ssh: connect to host have port 22: Connection refused loaded: ssh: connect to host loaded port 22: Connection refused disabled: ssh: connect to host disabled port 22: Connection refused will: ssh: connect to host will port 22: Connection refused might: ssh: connect to host might port 22: Connection refused The: ssh: connect to host the port 22: Connection refused fix: ssh: connect to host fix port 22: Connection refused library: ssh: connect to host library port 22: Connection refused stack: ssh: connect to host stack port 22: Connection refused the: ssh: connect to host the port 22: Connection refused fix: ssh: connect to host fix port 22: Connection refused that: ssh: connect to host that port 22: Connection refused with: ssh: connect to host with port 22: Connection refused recommended: ssh: connect to host recommended port 22: Connection refused the: ssh: connect to host the port 22: Connection refused highly: ssh: connect to host highly port 22: Connection refused guard: ssh: connect to host guard port 22: Connection refused or: ssh: connect to host or port 22: Connection refused with: ssh: connect to host with port 22: Connection refused library: ssh: connect to host library port 22: Connection refused stack: ssh: connect to host stack port 22: Connection refused tony@tony001's password: Tony001: Connection closed by 192.168.220.128 port 22 Starting secondary namenodes [Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/tony/app/hadoop-2.4.1/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now. It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. 0.0.0.0] sed: -e expression #1, char 6: unknown option tos’
HotSpot™: ssh: Could not resolve hostname hotspot™: Name or service not known
-c: Unknown cipher type ‘cd’
warning:: ssh: Could not resolve hostname warning:: Name or service not known
',: ssh: Could not resolve hostname ',: Name or service not known
‘execstack: ssh: Could not resolve hostname ‘execstack: Name or service not known
It’s: ssh: Could not resolve hostname it’s: Name or service not known
now.: ssh: Could not resolve hostname now.: Name or service not known
noexecstack’.: ssh: Could not resolve hostname noexecstack’.: Name or service not known
'-z: ssh: Could not resolve hostname '-z: Name or service not known
tony@0.0.0.0’s password:
0.0.0.0: starting secondarynamenode, logging to /home/tony/app/hadoop-2.4.1/logs/hadoop-tony-secondarynamenode-Tony001.out
Java: ssh: Could not resolve hostname java: Name or service not known
You: ssh: Could not resolve hostname you: Name or service not known
to: ssh: Could not resolve hostname to: Name or service not known
link: ssh: Could not resolve hostname link: Name or service not known
you: ssh: Could not resolve hostname you: Name or service not known
it: ssh: Could not resolve hostname it: Name or service not known
guard.: ssh: connect to host guard. port 22: Connection refused
stack: ssh: connect to host stack port 22: Connection refused
which: ssh: connect to host which port 22: Connection refused
library: ssh: connect to host library port 22: Connection refused
Server: ssh: connect to host server port 22: Connection refused
have: ssh: connect to host have port 22: Connection refused
might: ssh: connect to host might port 22: Connection refused
loaded: ssh: connect to host loaded port 22: Connection refused
disabled: ssh: connect to host disabled port 22: Connection refused
VM: ssh: connect to host vm port 22: Connection refused
64-Bit: ssh: connect to host 64-bit port 22: Connection refused
the: ssh: connect to host the port 22: Connection refused
that: ssh: connect to host that port 22: Connection refused
fix: ssh: connect to host fix port 22: Connection refused
have: ssh: connect to host have port 22: Connection refused
The: ssh: connect to host the port 22: Connection refused
stack: ssh: connect to host stack port 22: Connection refused
with: ssh: connect to host with port 22: Connection refused
will: ssh: connect to host will port 22: Connection refused
fix: ssh: connect to host fix port 22: Connection refused
or: ssh: connect to host or port 22: Connection refused
VM: ssh: connect to host vm port 22: Connection refused
the: ssh: connect to host the port 22: Connection refused
try: ssh: connect to host try port 22: Connection refused
highly: ssh: connect to host highly port 22: Connection refused
recommended: ssh: connect to host recommended port 22: Connection refused
library: ssh: connect to host library port 22: Connection refused
guard: ssh: connect to host guard port 22: Connection refused
with: ssh: connect to host with port 22: Connection refused
20/03/06 05:09:41 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable

检查防火墙发现

sudo service iptables status

Redirecting to /bin/systemctl status iptables.service
Unit iptables.service could not be found.

切到root用户安装服务
yum install iptables-services

安装完服务后,关闭hadoop,再次启动hadoop可成功
start-dfs.sh
20/03/06 05:34:19 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable
Starting namenodes on [Tony001]
tony@tony001’s password:
Tony001: starting namenode, logging to /home/tony/app/hadoop-2.4.1/logs/hadoop-tony-namenode-Tony001.out
tony@tony001’s password:
Tony001: starting datanode, logging to /home/tony/app/hadoop-2.4.1/logs/hadoop-tony-datanode-Tony001.out
Starting secondary namenodes [0.0.0.0]
tony@0.0.0.0’s password:
0.0.0.0: starting secondarynamenode, logging to /home/tony/app/hadoop-2.4.1/logs/hadoop-tony-secondarynamenode-Tony001.out
20/03/06 05:34:55 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable

启动yarn

start-yarn.sh
starting yarn daemons
starting resourcemanager, logging to /home/tony/app/hadoop-2.4.1/logs/yarn-tony-resourcemanager-Tony001.out
tony@tony001’s password:
Tony001: starting nodemanager, logging to /home/tony/app/hadoop-2.4.1/logs/yarn-tony-nodemanager-Tony001.out

登录浏览器50070无法访问时

检查防火墙状态

firewall-cmd --state

running

关掉防火墙
systemctl stop firewalld.service

再次检查
not running

标签:Name,22,refused,Connection,service,报错,ssh,port,connect
来源: https://blog.csdn.net/zwk_sys/article/details/104685265

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有