Why Cannot I Access the Apache Flink Dashboard?

Question

Why cannot I access the Apache Flink Dashboard through the URL: http://IP address of JobManager:port of JobManager.

Answer

The IP address of the computer you used has not been added to the whitelist of Apache Flink Dashboard. To solve the problem, perform the following operation:

  1. Check the configuration file conf/flink-conf.yaml on the client.
  2. Check whether the value of the jobmanager.web.ssl.enabled parameter is false.
    • If the value is not false, change the value to false.
    • If the value is false, perform the next step.
  3. Check whether the IP address of the computer you used has been added to the jobmanager.web.access-control-allow-origin and jobmanager.web.allow-access-address parameters. If the address has not been added, add it those parameters. For example:
    jobmanager.web.access-control-allow-origin: 192.168.252.35,192.168.24.216
    jobmanager.web.allow-access-address: 192.168.252.35,192.168.24.216