1. 程式人生 > 其它 >Flink Standalone(單機)叢集部署

Flink Standalone(單機)叢集部署

原創轉載請註明出處:https://www.cnblogs.com/agilestyle/p/14688963.html

下載

wget https://downloads.apache.org/flink/flink-1.12.2/flink-1.12.2-bin-scala_2.12.tgz

解壓

tar zxvf flink-1.12.2-bin-scala_2.12.tgz -C ~/app

cd

cd ~/app/flink-1.12.2/conf
ls -lrth

配置 flink-conf.yaml

vi flink-conf.yaml

jobmanager.rpc.address: localhost
jobmanager.rpc.port: 
6123 jobmanager.memory.process.size: 2048m taskmanager.memory.process.size: 4096m taskmanager.numberOfTaskSlots: 4 rest.port: 8086

Note: flink預設的rest.port的埠的是8081,由於本機上配置8081,導致StandaloneSessionClusterEntrypoint 起不來,所以配置成了8086

配置masters

vi masters

localhost:8086

配置workers

vi workers

localhost

啟動

cd ~/app/flink-1.12.2/bin
./start-cluster.sh

Note: 停止使用 ./stop-cluster.sh

jps

檢視UI

http://localhost:8086/#/overview

Reference

https://ci.apache.org/projects/flink/flink-docs-release-1.12/deployment/resource-providers/standalone/

https://ci.apache.org/projects/flink/flink-docs-release-1.12/deployment/config.html


歡迎點贊關注和收藏

強者自救 聖者渡人