connect to host **** port 22: Connection refused
来源:互联网 发布:淘宝2017双11广告视频 编辑:程序博客网 时间:2024/05/21 07:00
今天按照正常启动我的hadoop伪分布式时集群,当运行./start-dfs.sh命令时,namnode启动时报错了:
ssh: connect to host hadoop1 port 22: Connection refused
查看log文件后发下:
2015-09-12 02:38:02,882 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: STARTUP_MSG: /************************************************************STARTUP_MSG: Starting NameNodeSTARTUP_MSG: host = hadoop1/192.168.0.112STARTUP_MSG: args = []STARTUP_MSG: version = 2.2.0
我突然想起来昨天改了IP,把地址改为192.168.0.110,但是本地里的hosts文件里与主机名映射的IP地址并没有改过来,任然是192.168.0.112,把hosts文件改下就可以了:
vi /etc/hosts
把hadoop1对应的IP地址改为新IP即可解决问题
顺便记录一个撤销vi输入的命令:“u”
0 0
- connect to host **** port 22: Connection refused
- ssh: connect to host xxx port 22: Connection refused -ubuntu
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- ssh :connect to host 192.168.0.7 port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused 问题
- ssh: connect to host localhost port 22: Connection refused
- cygwin ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- Ubuntu ssh: connect to host localhost port 22:Connection refused
- ssh: connect to host localhost port 22: Connection refused 问题
- ssh: connect to host github.com port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- Linux--ssh: connect to host localhost port 22: Connection refused
- connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- Andorid中使用Jsoup解析库解析XML、HTML、Dom节点---第三方库学习笔记(三)
- 什么是实例化?
- build-essential
- Launcher3 OverviewMode和mInsets
- [错误记录]tableviewcell问题
- connect to host **** port 22: Connection refused
- android 4.4状态栏沉浸
- error:[NSNull length]: unrecognized selector sent to instance 0x198dd6690'
- WebService学习笔记(五)拦截器与SOAP协议
- 自己动手做Android音乐播放器(续)
- typedef与#define的区别
- PhoneGap创建Android项目并使用eclipse打开
- TCP协议中的三次握手和四次挥手(图解)
- EI企划网index.css