Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-7965

Docker-Flink: TaskManagers can't find JobManager when in different nodes in Docker Swarm

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • 1.3.2
    • None
    • flink-docker
    • None

    Description

      This happens even when the nodes are in the same subnet.

      I am using the Docker-Flink project in:
      https://github.com/apache/flink/tree/master/flink-contrib/docker-flink

      I am creating the services with the following commands:

      docker network create -d overlay overlay
      docker service create --name jobmanager --env JOB_MANAGER_RPC_ADDRESS=jobmanager -p 8081:8081 --network overlay --constraint 'node.hostname == ubuntu-swarm-manager' flink jobmanager
      docker service create --name taskmanager --env JOB_MANAGER_RPC_ADDRESS=jobmanager --network overlay --constraint 'node.hostname != ubuntu-swarm-manager' flink taskmanager

      I wonder if there's any configuration I'm missing. This is the error I get:

      Trying to register at JobManager akka.tcp://flink@jobmanager:6123/ user/jobmanager (attempt 4, timeout: 4000 milliseconds)

      Attachments

        Activity

          People

            Unassigned Unassigned
            javalass Thalita Vergilio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: