(1)vi masters
[root@hdp-1 conf]# vi masters
hdp-1:8081
hdp-2:8081
(2)vi slaves
[root@hdp-1 conf]# vi slaves
hdp-2
hdp-3
hdp-4
(3)vi flink-conf.yaml
#==============================================================================
# Common
#==============================================================================
# The external address of the host on which the JobManager runs and can be
# reached by the TaskManagers and any clients which want to connect. This setting
# is only used in Standalone mode and may be overwritten on the JobManager side
# by specifying the --host <hostname> parameter of the bin/jobmanager.sh executable.
# In high availability mode, if you use the bin/start-cluster.sh script and setup
# the conf/masters file, this will be taken care of automatically. Yarn/Mesos
# automatically configure the host name based on the hostname of the node where the
# JobManager runs.
jobmanager.rpc.address: hdp-1
# The number of task slots that each TaskManager offers. Each slot runs one parallel pipeline.
taskmanager.numberOfTaskSlots: 2
(4) vi zoo.cfg
[root@hdp-2 conf]# vi zoo.cfg
# ZooKeeper quorum peers
server.1=hdp-1:2888:3888
server.1=hdp-2:2888:3888
server.1=hdp-3:2888:3888
server.1=hdp-4:2888:3888
"zoo.cfg" 39L, 1505C written
每台都要配置!