Migrating Flink service to a different host

The Flink Dashboard role cannot be directly migrated from one host to another. You need to delete the existing role and add a new one to the host where you want to migrate the Flink Dashboard role. As Flink has mandatory dependencies for YARN, ZooKeeper and HDFS, these services should already be on the target host.

  1. Go your cluster in Cloudera Manager.
  2. Select Flink from the list of services.
  3. Click Instances.
  4. Check the box for the Flink Dashboard role.
  5. Click Action for Selected > Stop to stop the Flink Dashboard role.
  6. Click Action for Selected > Restart to delete the Flink Dashboard role.
    When deleting the Flink Dashboard role, an error message will be displayed as the Flink Dashboard role is mandatory for the Flink service:
    Service FLINK-1 has 0 Flink Dashboards. Flink requires at least 1 Flink Dashboard.
  7. Add a new Flink Dashboard role instance to the target host.
    1. Click Add Role Instances.
      The Add Role Instances wizard appears.
    2. Assign the Flink Dashboard role to a host.
    3. Review the changes.
    4. Click Finish.
      The new role is stopped when added.
  8. Check the box for the Flink Dashboard role.
  9. Click Action for Selected > Restart to restart the new Flink Dashboard role.
  10. Migrate the Flink configurations, and submit your Flink jobs to the host where the newly added Flink Dashboard role is running.
Start your Flink applications from savepoint and restore the Cloudera Manager configurations.