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

Port conflict when running nightly end-to-end tests

    XMLWordPrintableJSON

Details

    Description

      When I do the end-to-end check according to `https://github.com/apache/flink/tree/master/flink-end-to-end-tests`. I got the follows problem:

      1. Executed command, and the message of console as follows:

      FLINK_DIR=/Users/jincheng/work/FlinkRelease/1.8/flink-1.8.0/flink-dist/target/flink-1.8.0-bin/flink-1.8.0
      export FLINK_DIR
      
      sh flink-end-to-end-tests/run-nightly-tests.sh
      ...
      ...
      Starting taskexecutor daemon on host jinchengsunjcs-iMac.local.
      Dispatcher REST endpoint is up.
      Job (180a3cfc35d549417e5807520d7402f9) is running.
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      Waiting for job to process up to 200 records, current progress: 0 records ...
      

      2. Log info:

      2019-03-13 07:56:33,670 INFO  akka.remote.RemoteActorRefProvider$RemotingTerminator         - Remoting shut down.
      
      2019-03-13 07:56:33,673 ERROR org.apache.flink.runtime.entrypoint.ClusterEntrypoint         - Could not start cluster entrypoint StandaloneSessionClusterEntrypoint.
      
      org.apache.flink.runtime.entrypoint.ClusterEntrypointException: Failed to initialize the cluster entrypoint StandaloneSessionClusterEntrypoint.
      
      at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.startCluster(ClusterEntrypoint.java:190)
      
      at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.runClusterEntrypoint(ClusterEntrypoint.java:535)
      
      at org.apache.flink.runtime.entrypoint.StandaloneSessionClusterEntrypoint.main(StandaloneSessionClusterEntrypoint.java:65)
      
      Caused by: java.net.BindException: Could not start actor system on any port in port range 6123
      
      at org.apache.flink.runtime.clusterframework.BootstrapTools.startActorSystem(BootstrapTools.java:172)
      
      at org.apache.flink.runtime.clusterframework.BootstrapTools.startActorSystem(BootstrapTools.java:112)
      
      at org.apache.flink.runtime.clusterframework.BootstrapTools.startActorSystem(BootstrapTools.java:87)
      
      at org.apache.flink.runtime.rpc.akka.AkkaRpcServiceUtils.createRpcService(AkkaRpcServiceUtils.java:84)
      
      at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.createRpcService(ClusterEntrypoint.java:296)
      
      at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.initializeServices(ClusterEntrypoint.java:264)
      
      at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.runCluster(ClusterEntrypoint.java:216)
      
      at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.lambda$startCluster$0(ClusterEntrypoint.java:172)
      
      at org.apache.flink.runtime.security.NoOpSecurityContext.runSecured(NoOpSecurityContext.java:30)
      
      at org.apache.flink.runtime.entrypoint.ClusterEntrypoint.startCluster(ClusterEntrypoint.java:171)

      3. environment
      MacOS: 10.14.3
      Java version "1.8.0_151"
      jinchengsunjcs-iMac:~ jincheng$ echo $0
      -bash

      Attachments

        Issue Links

          Activity

            People

              liyu Yu Li
              sunjincheng121 sunjincheng
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m