Flink 1.7.0 Dashboard not show Task Statistics Flink 1.7.0 Dashboard not show Task Statistics kubernetes kubernetes

Flink 1.7.0 Dashboard not show Task Statistics


I guess you are running your cluster on Kubernetes or docker swarm. With Flink 1.7 on Kubernetes you need to make sure the task managers areregistering to the job manager with their IP addresses and not thehostnames. If you look at the jobmanagers log you'll find a lot of warnings that the Taskmanager can't be reached.

You can do that by passing defining the taskmanager.host parameter. An example depoyment might look like this:

apiVersion: extensions/v1beta1kind: Deployment....spec:  template:    spec:      containers:      - name: "<%= name %>"        args: ["taskmanager", "-Dtaskmanager.host=$(K8S_POD_IP)"]        env:          - name: K8S_POD_IP          valueFrom:            fieldRef:              fieldPath: status.podIP

If you are not running on K8 it might be worth a try to pass this parameter manually (by providing an IP adress which is reachable from the jobmanager as the taskmanager.host)

Hope that helps.


Update: Flink 1.8 solves the problem. The property taskmanager.network.bind-policy is by default set to "ip" which does more or less the same what the above described workaround does (https://ci.apache.org/projects/flink/flink-docs-stable/ops/config.html#taskmanager)