需要说明的是,Flink on yarn模式部署时,实际上不需要对Flink做任何修改配置,只需要将其解压传输到各个节点之上 如果要实现高可用的方案,这个时候就需要到Flink相应的配置修改参数,具体的配置文件是FLINK_HOME/conf/flink-conf.yaml。
standalone模式还是需要配置 Flink多种模式部署实践中的Standalone 模式 对于Flink on yarn模式,我们并不需要在conf配置下配置 masters和slaves。因为在指定TM的时候可以通过参数“-n”来标识需要启动几个TM;Flink on yarn启动后,如果是在分离式模式你会发现,在所有的节点只会出现一个 YarnSessionClusterEntrypoint进程;如果是客户端模式会出现2个进程一个YarnSessionClusterEntrypoint和一个FlinkYarnSessionCli进程。
2022/09/06 01:21:27 no config path specified; using /var/lib/derper/derper.key 2022/09/06 01:21:27 derper: serving on :23479 with TLS 2022/09/06 01:21:27 running STUN server on [::]:3478
# /etc/headscale/config.yaml derp: # List of externally available DERP maps encoded in JSON urls: - https://controlplane.tailscale.com/derpmap/default
# Locally available DERP map files encoded in YAML # # This option is mostly interesting for people hosting # their own DERP servers: # https://tailscale.com/kb/1118/custom-derp-servers/ # # paths: # - /etc/headscale/derp-example.yaml paths: - /etc/headscale/derp.yaml
# If enabled, a worker will be set up to periodically # refresh the given sources and update the derpmap # will be set up. auto_update_enabled: true
# How often should we check for DERP updates? update_frequency: 24h
100.64.0.1 junyao-lxgc8rs7 junyao macOS - 100.64.0.2 homeds-2xqvj919 junyao linux active; direct [::ffff:14.154.29.252]:41641, tx 518960 rx 7674032
ping一下
1 2 3 4
tailscale ping 100.64.0.2
pong from homeds-2xqvj919 (100.64.0.2) via [::ffff:14.154.29.252]:41641 in 6ms --->通过点对点 pong from homeds-2xqvj919 (100.64.0.2) via DERP(thk) in 104ms --->通过DERP