一 下载源码
wget https://archive.apache.org/dist/flink/flink-1.9.3/flink-1.9.3-bin-scala_2.12.tgz
配置文件
flink-conf.yaml
jobmanager.rpc.address: localhost
jobmanager.rpc.port: 6123
jobmanager.heap.size: 6144m
jobmanager.heap.size: 6144m
taskmanager.heap.size: 6144m
taskmanager.numberOfTaskSlots: 8
parallelism.default: 8
high-availability: zookeeper
high-availability.zookeeper.quorum: slave1:2181,slave2:2181,slave3:2181
high-availability.zookeeper.path.root: /flink_yarn
high-availability.cluster-id: /cluster_flink_yarn
yarn.application-attempts: 10
state.checkpoints.dir: hdfs://ruqibigdata:9000/flink/checkpoints
state.savepoints.dir: hdfs://ruqibigdata:9000/fiink/savepoints
rest.port: 18081
[hadoop@master conf]$ cat masters
master:18081
masterbak:18081
[hadoop@master conf]$ cat slaves
slave1
slave2
slave3