解决: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: 没有到主机的路由
是虚拟机之间的防火墙没有关闭
systemctl stop firewalld
systemctl disable firewalld.service
查看防火墙状态
systemctl status firewalld
版权归原作者 Andy86666 所有, 如有侵权,请联系我们删除。