flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arsenii Krasikov (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FLINK-2766) Bad ipv6 jomanager url
Date Fri, 25 Sep 2015 16:14:04 GMT

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

Arsenii Krasikov edited comment on FLINK-2766 at 9/25/15 4:13 PM:
------------------------------------------------------------------

And in
flink-staging/flink-streaming/flink-streaming-connectors/flink-connector-kafka/src/test/java/org/apache/flink/streaming/connectors/kafka/KafkaTestBase.java
{code:java}
                                String host = socketServer.host() == null ? "localhost" :
socketServer.host();
                                brokerConnectionStrings += host+":"+socketServer.port()+",";
{code}

flink-runtime/src/main/scala/org/apache/flink/runtime/taskmanager/TaskManager.scala:     
      {code:java}
val address = taskManagerHostname + ":" + actorSystemPort
{code}

./flink-staging/flink-streaming/flink-streaming-connectors/flink-connector-filesystem/src/test/java/org/apache/flink/streaming/connectors/fs/RollingSinkFaultToleranceITCase.java:
             {code:java}hdfsURI = "hdfs://"
 + hdfsCluster.getURI().getHost() + ":" + hdfsCluster.getNameNodePort() +"/";{code}
./flink-staging/flink-streaming/flink-streaming-connectors/flink-connector-filesystem/src/test/java/org/apache/flink/streaming/connectors/fs/RollingSinkITCase.java:
           {code:java}hdfsURI = "hdfs://" + hdfsCluster.g
etURI().getHost() + ":" + hdfsCluster.getNameNodePort() +"/";{code}
./flink-staging/flink-streaming/flink-streaming-connectors/flink-connector-filesystem/src/test/java/org/apache/flink/streaming/connectors/fs/RollingSinkFaultTolerance2ITCase.java:
            {code:java}hdfsURI = "hdfs://"
 + hdfsCluster.getURI().getHost() + ":" + hdfsCluster.getNameNodePort() +"/";{code}
./flink-staging/flink-streaming/flink-streaming-connectors/flink-connector-kafka/src/test/java/org/apache/flink/streaming/connectors/kafka/KafkaConsumerTestBase.java:
                                         if 
{code:java}(leaderToShutDown.equals(kafkaServer.config().advertisedHostName()+ ":"+ kafkaServer.config().advertisedPort()))
{{code}


was (Author: nyaapa):
And in flink-staging/flink-streaming/flink-streaming-connectors/flink-connector-kafka/src/test/java/org/apache/flink/streaming/connectors/kafka/KafkaTestBase.java
{code:java}
                                String host = socketServer.host() == null ? "localhost" :
socketServer.host();
                                brokerConnectionStrings += host+":"+socketServer.port()+",";
{code}

> Bad ipv6 jomanager url
> ----------------------
>
>                 Key: FLINK-2766
>                 URL: https://issues.apache.org/jira/browse/FLINK-2766
>             Project: Flink
>          Issue Type: Bug
>    Affects Versions: 0.9.1, 0.9.2
>            Reporter: Arsenii Krasikov
>
> There is error with ipv6 addresses in flink-runtime/src/main/scala/org/apache/flink/runtime/jobmanager/JobManager.scala:
> {code:java}
>   /**
>    * Builds the akka actor path for the JobManager actor, given the socket address
>    * where the JobManager's actor system runs.
>    *
>    * @param address The address of the JobManager's actor system.
>    * @return The akka URL of the JobManager actor.
>    */
>   def getRemoteJobManagerAkkaURL(address: InetSocketAddress): String = {
>     val hostPort = address.getAddress().getHostAddress() + ":" + address.getPort()
>     s"akka.tcp://flink@$hostPort/user/$JOB_MANAGER_NAME"
>   }
> {code}
> that leads to 
> {code}
> 19:02:10,451 INFO  org.apache.flink.runtime.taskmanager.TaskManager              - Trying
to register at JobManager akka.tcp://flink@2a02:6b8:0:1a39:0:0:12c:1:6123/user/jobmanager
(attempt 31, timeout: 30 seconds)
> 19:02:40,470 INFO  org.apache.flink.runtime.taskmanager.TaskManager              - Trying
to register at JobManager akka.tcp://flink@2a02:6b8:0:1a39:0:0:12c:1:6123/user/jobmanager
(attempt 32, timeout: 30 seconds)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message