Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
27642e89
Unverified
Commit
27642e89
authored
Jul 25, 2024
by
luoshangjie
Committed by
GitHub
Jul 25, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix] Fix the issue by manually configuring rest.address and rest.port (#3669)
Co-authored-by:
luoshangjie
<
luoshangjie@yfpharmacy.com
>
parent
e890d07d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
SqlClientAdapter.java
...va/org/dinky/gateway/sqlgateway/cli/SqlClientAdapter.java
+2
-0
No files found.
dinky-gateway/src/main/java/org/dinky/gateway/sqlgateway/cli/SqlClientAdapter.java
View file @
27642e89
...
...
@@ -82,6 +82,8 @@ public class SqlClientAdapter implements Closeable {
.
orElseThrow
(()
->
new
IllegalArgumentException
(
"Flink Cluster address is not set."
));
configuration
.
set
(
RestOptions
.
BIND_ADDRESS
,
clusterAddress
.
getHostName
());
configuration
.
set
(
RestOptions
.
BIND_PORT
,
clusterAddress
.
getPort
()
+
""
);
configuration
.
set
(
RestOptions
.
ADDRESS
,
clusterAddress
.
getHostName
());
configuration
.
set
(
RestOptions
.
PORT
,
clusterAddress
.
getPort
());
configuration
.
set
(
DeploymentOptions
.
TARGET
,
RemoteExecutor
.
NAME
);
// 当客户端程序终止时,作业执行也会终止。
configuration
.
set
(
DeploymentOptions
.
ATTACHED
,
true
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment