当在其中一台机器上面查询的时候,抓包其他机器可以看见是有请求的。
tcpdump -i any -s 0 -l -w – dst port 9000
那么关闭其中一台机器呢?
:) select * from ontime_all;
SELECT *FROM ontime_all
┌─FlightDate─┬─Year─┐│ 2001-10-12 │ 2001 │└────────────┴──────┘┌─FlightDate─┬─Year─┐│ 2002-10-12 │ 2002 │└────────────┴──────┘┌─FlightDate─┬─Year─┐│ 2003-10-12 │ 2003 │└────────────┴──────┘↓ Progress: 6.00 rows, 24.00 B (292.80 rows/s., 1.17 KB/s.) Received exception from server:Code: 279. DB::Exception: Received from localhost:9000, ::1. DB::NetException. DB::NetException: All connection tries failed. Log:
Code: 210, e.displayText() = DB::NetException: Connection refused: (db_server_yayun_02:9000, 192.168.0.20), e.what() = DB::NetExceptionCode: 210, e.displayText() = DB::NetException: Connection refused: (db_server_yayun_02:9000, 192.168.0.20), e.what() = DB::NetExceptionCode: 210, e.displayText() = DB::NetException: Connection refused: (db_server_yayun_02:9000, 192.168.0.20), e.what() = DB::NetException