解决:java.net.NoRouteToHostException: 没有到主机的路由
在执行spark程序的jar包时,出现下面问题
2022-05-26 08:54:06,392 INFO retry.RetryInvocationHandler: java.net.NoRouteToHostException: No Route to Host from spark1/192.168.40.30 to spark2:8032 failed on socket timeout exception: java.net.NoRouteToHostException: 没有到主机的路由; For more details see: http://wiki.apache.org/hadoop/NoRouteToHost, while invoking ApplicationClientProtocolPBClientImpl.getClusterMetrics over null after 13 failover attempts. Trying to failover after sleeping for 38541ms.
查看: http://wiki.apache.org/hadoop/NoRouteToHost中,提示如下
可以根据上面查找问题
我出现java.net.NoRouteToHostException: 没有到主机的路由
是虚拟机之间的防火墙没有关闭文章来源:https://www.toymoban.com/news/detail-518043.html
systemctl stop firewalld
systemctl disable firewalld.service
查看防火墙状态文章来源地址https://www.toymoban.com/news/detail-518043.html
systemctl status firewalld
到了这里,关于解决:java.net.NoRouteToHostException: 没有到主机的路由的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!