Flink - Local execution Failed to start the Queryable State Data Server

I. Introduction

Flink's local execution task reports Failed to start the Queryable State Data Server and Unable to start Queryable State Server. All ports in provided range are occupied. According to the analysis of the error, it is because the local port is occupied and there are not enough ports for Flink Queryable DataServer to start, so solve The method is to deal with the occupied port. Queryable DataServer is mainly responsible for querying the internal value usage of Flink jobs.

2. Native Solutions - Mac

Just restart the computer (*^▽^*)

3. Server Solutions - Linux

If the port is occupied too much, find which one occupies the most and kill the task.

A. Check the current port usage of the computer, the first column is the program command, and the second column is the pid corresponding to the program

lsof -i

B. Find the program pid that occupies too many ports

kill the pid corresponding to the task

kill -9 $pid

Tips:

If you know that a port is occupied too much or you want to check the occupancy of a port, you can specify the port to query:

lsof -i tcp:$port

For example, to query the occupancy of port 49662: 

lsof -i tcp:49662
COMMAND  PID     USER   FD   TYPE   DEVICE          SIZE/OFF NODE NAME
java    1751     BITDDD 67u  IPv6   0x3148f6fa1a7526a9 0t0 TCP localhost:49662 (LISTEN)

Guess you like

Origin blog.csdn.net/BIT_666/article/details/123629773