Bootstrap Action
Request
GET /api/bootstrap
Description
用于判断FE是否启动完成。当不提供任何参数时,仅返回是否启动成功。如果提供了 token 和 cluster_id,则返回更多详细信息。
Path parameters
无
Query parameters
cluster_id集群id。可以在
palo-meta/image/VERSION文件中查看。token集群token。可以在
palo-meta/image/VERSION文件中查看。
Request body
无
Response
不提供参数
{"msg": "OK","code": 0,"data": null,"count": 0}
code 为 0 表示FE节点启动成功。非 0 的错误码表示其他错误。
提供
token和cluster_id{"msg": "OK","code": 0,"data": {"queryPort": 9030,"rpcPort": 9020,"maxReplayedJournal": 17287},"count": 0}
queryPort是 FE 节点的 MySQL 协议端口。rpcPort是 FE 节点的 thrift RPC 端口。maxReplayedJournal表示 FE 节点当前回放的最大元数据日志id。
Examples
不提供参数
GET /api/bootstrapResponse:{"msg": "OK","code": 0,"data": null,"count": 0}
提供
token和cluster_idGET /api/bootstrap?cluster_id=935437471&token=ad87f6dd-c93f-4880-bcdb-8ca8c9ab3031Response:{"msg": "OK","code": 0,"data": {"queryPort": 9030,"rpcPort": 9020,"maxReplayedJournal": 17287},"count": 0}