1. rest.port
改参数默认值是8081,
#rest.port: 8081
该配置是 rest client连接时的端口,如果rest.bind-port没有指定特定的端口值,那么该端口默认是8081;如果rest.bin-port被设置了特定的值,则该rest.port=rest.bin-port
//flink-conf.yaml中对该参数的解释
# The port to which the REST client connects to. If rest.bind-port has
# not been specified, then the server will bind to this port as well.
2. rest.bind-port
改参数的值是一个端口范围,在flink启动的时候,会从8080开启,选取一个可用的端口,作为rest.bind-port的值
//flink-conf.yaml文件中对该参数的说明如下
# Port range for the REST and web server to bind to.
#
#rest.bind-port: 8080-8090
本文总结了Flink中与REST API相关的两个关键配置参数:rest.port和rest.bind-port。rest.port默认为8081,用于REST客户端连接。若未设定rest.bind-port,其值默认等于rest.port。而rest.bind-port指定的是一个端口范围,Flink启动时会从8080开始寻找可用端口作为实际的绑定端口。

975

被折叠的 条评论
为什么被折叠?



