Flink-1.18.1环境搭建

下载

下载flink安装包

Index of /dist/flink/flink-1.18.1

下载flink-cdc安装包

Release Release 3.0.0 · ververica/flink-cdc-connectors · GitHub

安装

添加环境变量

vi ~/.bash_profile

export FLINK_HOME=/home/postgres/flink/flink-1.18.1

export PATH=$PATH:$FLINK_HOME/bin

source ~/.bash_profile

参数修改

vi ${FLINK_HOME}/conf/flink-conf.yaml

rest.bind-address: 0.0.0.0

rest.address: 0.0.0.0

启动服务

不要用sh命令启动,因为这样看第三行报错:bin/config.sh: line 32: ` done < <(find "$FLINK_LIB_DIR" ! -type d -name '*.jar' -print0 | sort -z)'

第 32 行的语法在 sh 中是不支持的,

你可能感兴趣的:(PostgreSQL,flink,大数据)