Skip to main content

FRONTENDS

Description​

The table function generates the frontends temporary table, which allows you to view the FE node information in the current doris cluster.

Syntax​

FRONTENDS()

Access Control Requirements​

PrivilegeObjectNotes
ADMIN_PRIVglobal

Return Value​

FieldDescription
NameThe unique name of the frontend node.
HostThe IP address or hostname of the frontend node.
EditLogPortThe port used for edit log communication.
HttpPortThe HTTP port for the frontend node.
QueryPortThe port used for query execution on the frontend node.
RpcPortThe port used for RPC communication.
ArrowFlightSqlPortThe Arrow Flight SQL port (used for integration with Apache Arrow for high-performance data transport).
RoleThe role of the frontend node (e.g., FOLLOWER).
IsMasterIndicates whether the node is a master node (true/false).
ClusterIdThe identifier for the cluster to which the frontend node belongs.
JoinIndicates if the frontend node is part of the cluster (true/false).
AliveIndicates if the frontend node is alive (true/false).
ReplayedJournalIdThe last journal ID that was replayed by the frontend node.
LastStartTimeThe timestamp of the last start time of the frontend node.
LastHeartbeatThe timestamp for the last heartbeat received from the frontend node.
IsHelperIndicates whether the frontend node is a helper node (true/false).
ErrMsgAny error messages reported by the frontend node.
VersionThe version of the frontend node.

Examples​

show frontends cluster information

select * from frontends();
+-----------------------------------------+------------+-------------+----------+-----------+---------+--------------------+----------+----------+-----------+------+-------+-------------------+---------------------+---------------------+----------+--------+-------------------------+------------------+
| Name | Host | EditLogPort | HttpPort | QueryPort | RpcPort | ArrowFlightSqlPort | Role | IsMaster | ClusterId | Join | Alive | ReplayedJournalId | LastStartTime | LastHeartbeat | IsHelper | ErrMsg | Version | CurrentConnected |
+-----------------------------------------+------------+-------------+----------+-----------+---------+--------------------+----------+----------+-----------+------+-------+-------------------+---------------------+---------------------+----------+--------+-------------------------+------------------+
| fe_f4642d47_62a2_44a2_b79d_3259050ab9de | 10.xx.xx.90 | 9010 | 8030 | 9030 | 9020 | -1 | FOLLOWER | true | 917153130 | true | true | 555248 | 2025-01-13 14:11:31 | 2025-01-16 14:27:56 | true | | doris-0.0.0--83f899b32b | Yes |
+-----------------------------------------+------------+-------------+----------+-----------+---------+--------------------+----------+----------+-----------+------+-------+-------------------+---------------------+---------------------+----------+--------+-------------------------+------------------+