hanson2021 opened a new issue, #5957:
URL: https://github.com/apache/kyuubi/issues/5957

   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [X] I have searched in the 
[issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Describe the bug
   
   After start KyuubiServer, running flinksql on yarn-session failed because of 
Initializing server with reusing yuubi.frontend.thrift.binary.bind.port; 
Running flinksql on yarn-application and sparksql are both ok.
   when replaced
    with deprecated kyuubi.frontend.bind.port=10009,all engines are OK. 
   
   ### Affects Version(s)
   
   master/1.8.0
   
   ### Kyuubi Server Log Output
   
   _No response_
   
   ### Kyuubi Engine Log Output
   
   ```logtalk
   2024-01-10 10:22:54.155 INFO main 
org.apache.kyuubi.engine.flink.FlinkSQLBackendService: 
Service[FlinkSQLBackendService] is initialized.
   2024-01-10 10:22:54.231 ERROR main 
org.apache.kyuubi.engine.flink.FlinkTBinaryFrontendService: 
java.net.BindException: Address already in use (Bind failed)
   2024-01-10 10:22:54.231 ERROR main 
org.apache.kyuubi.engine.flink.FlinkSQLEngine: Fatal error occurs, thus 
stopping the engines
   org.apache.kyuubi.KyuubiException: Failed to initialize frontend service on 
sh1-bigdata-m04/10.2.50.73:10009.
           at 
org.apache.kyuubi.service.TBinaryFrontendService.initialize(TBinaryFrontendService.scala:127)
           at 
org.apache.kyuubi.service.CompositeService.$anonfun$initialize$1(CompositeService.scala:40)
           at 
org.apache.kyuubi.service.CompositeService.$anonfun$initialize$1$adapted(CompositeService.scala:40)
           at 
scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:58)
           at 
scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:51)
           at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
           at 
org.apache.kyuubi.service.CompositeService.initialize(CompositeService.scala:40)
           at 
org.apache.kyuubi.service.Serverable.initialize(Serverable.scala:46)
           at 
org.apache.kyuubi.engine.flink.FlinkSQLEngine.initialize(FlinkSQLEngine.scala:43)
           at 
org.apache.kyuubi.engine.flink.FlinkSQLEngine$.$anonfun$startEngine$2(FlinkSQLEngine.scala:124)
           at 
org.apache.kyuubi.engine.flink.FlinkSQLEngine$.$anonfun$startEngine$2$adapted(FlinkSQLEngine.scala:123)
           at scala.Option.foreach(Option.scala:257)
           at 
org.apache.kyuubi.engine.flink.FlinkSQLEngine$.startEngine(FlinkSQLEngine.scala:123)
           at 
org.apache.kyuubi.engine.flink.FlinkSQLEngine$.main(FlinkSQLEngine.scala:100)
           at 
org.apache.kyuubi.engine.flink.FlinkSQLEngine.main(FlinkSQLEngine.scala)
   Caused by: java.net.BindException: Address already in use (Bind failed)
           at java.net.PlainSocketImpl.socketBind(Native Method)
           at 
java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
           at java.net.ServerSocket.bind(ServerSocket.java:375)
           at java.net.ServerSocket.<init>(ServerSocket.java:237)
           at 
org.apache.kyuubi.service.TBinaryFrontendService.initialize(TBinaryFrontendService.scala:101)
           ... 14 more
   ```
   
   
   ### Kyuubi Server Configurations
   
   ```yaml
   kyuubi.frontend.thrift.binary.bind.port=10009
   kyuubi.engine.type=FLINK_SQL
   flink.execution.target=yarn-session
   ```
   
   
   ### Kyuubi Engine Configurations
   
   _No response_
   
   ### Additional context
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes. I would be willing to submit a PR with guidance from the Kyuubi 
community to fix.
   - [ ] No. I cannot submit a PR at this time.


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to