[ 
https://issues.apache.org/jira/browse/FLINK-11892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16791268#comment-16791268
 ] 

Yu Li commented on FLINK-11892:
-------------------------------

+1, nice analysis on the root cause!

I encountered the same issue on my macbook (10.14.3 also) and confirmed that 
directly run the {{run-nightly-tests.sh}} script instead of using {{sh}} to 
launch it could resolve the problem. Also checked and confirmed in my env 
{{/bin/sh}} is not linked to {{/bin/bash}} although many linux system will do.

I think the current command documented in current README is correct, but adding 
a special note about don't explicitly use _*sh*_ to run the script will 
definitely help.

I've also opened a JIRA (FLINK-11888) to refine the end-to-end test document, 
so do you mind me to take this JIRA and link it to FLINK-11888 
[~sunjincheng121]? Thanks.

> 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)

Reply via email to