Flink常用的配置参数总结

本文总结了Flink中与REST API相关的两个关键配置参数:rest.port和rest.bind-port。rest.port默认为8081,用于REST客户端连接。若未设定rest.bind-port,其值默认等于rest.port。而rest.bind-port指定的是一个端口范围,Flink启动时会从8080开始寻找可用端口作为实际的绑定端口。

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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值