启动hadoop出现ssh: connect to host master port 22: No route to host

时间:2024-03-23 10:03:42

当启动hadoop或者使用ssh时出现:

启动hadoop出现ssh: connect to host master port 22: No route to host

输入ifconfig指令发现:自己之前配置的ip:192.168.79.103地址已经发生了变化

启动hadoop出现ssh: connect to host master port 22: No route to host

怎么解决办法呢?

如下步骤:

重新修改静态ip

输入vi /etc/udev/rules.d/70-persistent-net.rules指令进行修改信息:

修改前:

启动hadoop出现ssh: connect to host master port 22: No route to host

 

修改后:

启动hadoop出现ssh: connect to host master port 22: No route to host

 

删除一些信息,并把NAME=”eth2”改成NAME=”eth2”,并复制00:0c:29:8d:30:50信息

再输入vi /etc/sysconfig/network-scripts/ifcfg-eth0指令进入文件进行修改信息

启动hadoop出现ssh: connect to host master port 22: No route to host

 

修改前:

启动hadoop出现ssh: connect to host master port 22: No route to host

 

修改后:

启动hadoop出现ssh: connect to host master port 22: No route to host

 

 

再分别输入sync指令和reboot指令进行重启

 

 

启动hadoop出现ssh: connect to host master port 22: No route to host

之后再进行检查是否成功:

输入ifconfig指令:

启动hadoop出现ssh: connect to host master port 22: No route to host