Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
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
zhaowei
dlink
Commits
47f88697
Commit
47f88697
authored
Apr 01, 2022
by
wenmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix-294] [admin] Fix to flink conf json bug
parent
5318e007
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
StudioExecuteDTO.java
...k-admin/src/main/java/com/dlink/dto/StudioExecuteDTO.java
+10
-7
No files found.
dlink-admin/src/main/java/com/dlink/dto/StudioExecuteDTO.java
View file @
47f88697
...
...
@@ -5,6 +5,7 @@ import com.dlink.job.JobConfig;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.databind.JsonNode
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
lombok.Getter
;
import
lombok.Setter
;
...
...
@@ -50,13 +51,15 @@ public class StudioExecuteDTO extends AbstractStatementDTO {
if
(
Asserts
.
isNotNullString
(
configJson
))
{
try
{
paras
=
mapper
.
readTree
(
configJson
);
}
catch
(
JsonProcessingException
e
)
{
e
.
printStackTrace
();
}
paras
.
forEach
((
JsonNode
node
)
->
{
if
(!
node
.
isNull
())
{
config
.
put
(
node
.
get
(
"key"
).
asText
(),
node
.
get
(
"value"
).
asText
());
}
}
);
}
catch
(
JsonProcessingException
e
)
{
e
.
printStackTrace
();
}
}
return
new
JobConfig
(
type
,
useResult
,
useChangeLog
,
useAutoCancel
,
useSession
,
session
,
clusterId
,
...
...
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