flink sql client 报错java.net.NoRouteToHostException: 没有到主机的路由

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

flink sql client 报错java.net.NoRouteToHostException: 没有到主机的路由

奚焘
本人刚学习flink ,下载解压了flink,启动./sql-client.sh embedded ,输入SELECT 'Hello World';报错
Flink SQL> SELECT 'Hello World';
[ERROR] Could not execute SQL statement. Reason:
java.net.NoRouteToHostException: 没有到主机的路由



--
Sent from: http://apache-flink.147419.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: flink sql client 报错java.net.NoRouteToHostException: 没有到主机的路由

Jark
Administrator
你本地 ping 一下 localhost 看看能不能 ping 通。
另外看看本地有没有开网络代理,有的话关掉试试。

Best,
Jark

On Tue, 1 Dec 2020 at 09:38, 奚焘 <[hidden email]> wrote:

> 本人刚学习flink ,下载解压了flink,启动./sql-client.sh embedded ,输入SELECT 'Hello
> World';报错
> Flink SQL> SELECT 'Hello World';
> [ERROR] Could not execute SQL statement. Reason:
> java.net.NoRouteToHostException: 没有到主机的路由
>
>
>
> --
> Sent from: http://apache-flink.147419.n8.nabble.com/
>
Reply | Threaded
Open this post in threaded view
|

Re: flink sql client 报错java.net.NoRouteToHostException: 没有到主机的路由

奚焘
找到原因了,host文件里localhost的ip不对



--
Sent from: http://apache-flink.147419.n8.nabble.com/