You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "Cocoyamsweetsnow (via GitHub)" <gi...@apache.org> on 2026/03/05 07:59:01 UTC
[PR] Using Flink 1.20.3, starting sql-client.sh throws 'Failed to start th… [doris]
Cocoyamsweetsnow opened a new pull request, #61070:
URL: https://github.com/apache/doris/pull/61070
…e embedded sql-gateway' error
### What problem does this PR solve?
Issue Number: close #60983
Related PR: None
Problem Summary:
在 Flink 1.20+ 中,`sql-client.sh` 的行为发生了重大变更:不再直接连接 JobManager
的 REST 端点,而是在本地启动一个嵌入式 SQL Gateway。该嵌入式网关在未显式配置
`sql-gateway.endpoint.rest.port` 时,会继承全局的 `rest.bind-port`(默认 8081)
作为自己的 REST 端口。
由于 JobManager 的 REST 端点已经占用了 8081,嵌入式 SQL Gateway 尝试绑定同一端口时
就会抛出以下异常:
java.net.BindException: Could not start rest endpoint on any port in port range 8081 at org.apache.flink.runtime.rest.RestServerEndpoint.start at org.apache.flink.table.gateway.SqlGateway.start
**修复方案:**
在 `samples/datalake/iceberg_and_paimon/data/flink-conf/flink-conf.yaml` 中新增
`sql-gateway.endpoint.rest.port: 9091`,为嵌入式 SQL Gateway 指定一个独立端口,
使其与 JobManager REST 端口(8081)隔离,避免端口冲突。
### Release note
When using Flink 1.20+ with `sql-client.sh`, add `sql-gateway.endpoint.rest.port`
configuration to avoid port conflict with JobManager's REST endpoint.
### Check List (For Author)
- Test
- [x] No need to test or manual test. Explain why:
- [x] This is a refactor/code format and no logic has been changed.
- No runtime logic changed; only a configuration sample file is updated.
- Behavior changed:
- [x] No.
- Does this need documentation?
- [x] No.
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Using Flink 1.20.3, starting sql-client.sh throws 'Failed to start th… [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #61070:
URL: https://github.com/apache/doris/pull/61070#issuecomment-4003314585
PR approved by at least one committer and no changes requested.
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Using Flink 1.20.3, starting sql-client.sh throws 'Failed to start th… [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #61070: Using Flink 1.20.3, starting sql-client.sh throws 'Failed to start th…
URL: https://github.com/apache/doris/pull/61070
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Using Flink 1.20.3, starting sql-client.sh throws 'Failed to start th… [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #61070:
URL: https://github.com/apache/doris/pull/61070#issuecomment-4003314858
PR approved by anyone and no changes requested.
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Using Flink 1.20.3, starting sql-client.sh throws 'Failed to start th… [doris]
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman commented on PR #61070:
URL: https://github.com/apache/doris/pull/61070#issuecomment-4003305834
run buildall
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Using Flink 1.20.3, starting sql-client.sh throws 'Failed to start th… [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #61070:
URL: https://github.com/apache/doris/pull/61070#issuecomment-5502426471
We're closing this PR because it hasn't been updated in a while.
This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and feel free a maintainer to remove the Stale tag!
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] Using Flink 1.20.3, starting sql-client.sh throws 'Failed to start th… [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #61070:
URL: https://github.com/apache/doris/pull/61070#issuecomment-4003084416
Thank you for your contribution to Apache Doris.
Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/How+to+process+your+PR).
Please clearly describe your PR:
1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
3. What features were added. Why was this function added?
4. Which code was refactored and why was this part of the code refactored?
5. Which functions were optimized and what is the difference before and after the optimization?
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org