错误如下:

INFO ipc.Client: Retrying connect to server: hadoop03/192.168.31.133:8032. Already tried 0 time(s);

解决办法:

把hosts的一行注释掉

INFO ipc.Client: Retrying connect to server: hadoop03/192.168.31.133:8032. Already tried 0 time(s);

如果不注释的话端口号前面的默认是127.0.0.1 导致无法连接

参考:https://blog.csdn.net/zhugongshan/article/details/103819830

没有注释前8032的端口:127.0.0.1:8032

INFO ipc.Client: Retrying connect to server: hadoop03/192.168.31.133:8032. Already tried 0 time(s);

注释后:192.168.31.133:8032

INFO ipc.Client: Retrying connect to server: hadoop03/192.168.31.133:8032. Already tried 0 time(s);

注释掉后就可以连接成功啦!

理解:

在配置中指定了192.168.31.133  执行命令的时候肯定是去找192.168.31.133:8032找,而不是去127.0.0.1:8032

目前只能理解到这种地步啦!!!感谢参考的博客 解决了困扰我两天的问题!!!

相关文章:

  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2021-07-24
  • 2021-08-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
  • 2021-11-15
  • 2022-12-23
相关资源
相似解决方案