TisonKun commented on a change in pull request #9575: [FLINK-13912][client] 
Remove ClusterClient#getClusterConnectionInfo
URL: https://github.com/apache/flink/pull/9575#discussion_r319575218
 
 

 ##########
 File path: 
flink-scala-shell/src/main/scala/org/apache/flink/api/scala/FlinkShell.scala
 ##########
 @@ -277,8 +277,9 @@ object FlinkShell {
 
     val cluster = clusterDescriptor.deploySessionCluster(clusterSpecification)
 
-    val inetSocketAddress = AkkaUtils.getInetSocketAddressFromAkkaURL(
-      cluster.getClusterConnectionInfo.getAddress)
+    val webMonitorUrl = new URL(cluster.getWebInterfaceURL)
+
+    val inetSocketAddress = new InetSocketAddress(webMonitorUrl.getHost, 
webMonitorUrl.getPort)
 
 Review comment:
   Make sense, will update

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to