[ https://issues.apache.org/jira/browse/FLINK-11892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16791183#comment-16791183 ]
sunjincheng commented on FLINK-11892: ------------------------------------- Just now I try to use `flink-end-to-end-tests/run-nightly-tests.sh` the test passed. The reason is that the two commands use different shells on my machine: {code:java} jinchengsunjcs-iMac:~ jincheng$ sh Sh-3.2$ Sh-3.2$ exit Exit jinchengsunjcs-iMac:~ jincheng$ /usr/bin/env bash Bash-3.2$ {code} And the `run-nightly-tests.sh` has defined ` /usr/bin/env bash`. So, I think we should improve the README doc, tell the user not to use sh to execute. What do you think? > Port conflict problem when do the end-to-end nightly-tests. > ----------------------------------------------------------- > > Key: FLINK-11892 > URL: https://issues.apache.org/jira/browse/FLINK-11892 > Project: Flink > Issue Type: Sub-task > Affects Versions: 1.8.0, 1.9.0 > Reporter: sunjincheng > Priority: Major > > 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: > {code:java} > 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 ... > {code} > 2. Log info: > {code:java} > 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){code} > 3. environment > MacOS: 10.14.3 > Java version "1.8.0_151" > jinchengsunjcs-iMac:~ jincheng$ echo $0 > -bash -- This message was sent by Atlassian JIRA (v7.6.3#76005)