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
93ada5dd
Unverified
Commit
93ada5dd
authored
Jun 01, 2022
by
aiwenmo
Committed by
GitHub
Jun 01, 2022
Browse files
Options
Browse Files
Download
Plain Diff
[Fix-556][adimin,gateway] Fix flinkLibPath in K8S configuration is null
[Fix-556][adimin,gateway] Fix flinkLibPath in K8S configuration is null
parents
9c06fc27
4cdc327d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
ClusterConfigurationServiceImpl.java
...m/dlink/service/impl/ClusterConfigurationServiceImpl.java
+2
-4
ClusterConfig.java
...src/main/java/com/dlink/gateway/config/ClusterConfig.java
+8
-0
KubernetesGateway.java
.../java/com/dlink/gateway/kubernetes/KubernetesGateway.java
+0
-5
No files found.
dlink-admin/src/main/java/com/dlink/service/impl/ClusterConfigurationServiceImpl.java
View file @
93ada5dd
...
...
@@ -53,15 +53,13 @@ public class ClusterConfigurationServiceImpl extends SuperServiceImpl<ClusterCon
config
.
get
(
"flinkLibPath"
).
toString
(),
config
.
get
(
"hadoopConfigPath"
).
toString
()));
}
else
{
gatewayConfig
.
setClusterConfig
(
ClusterConfig
.
build
(
config
.
get
(
"flinkConfigPath"
).
toString
(),
config
.
get
(
"flinkLibPath"
).
toString
(),
""
));
gatewayConfig
.
setClusterConfig
(
ClusterConfig
.
build
(
config
.
get
(
"flinkConfigPath"
).
toString
()));
}
if
(
config
.
containsKey
(
"flinkConfig"
))
{
gatewayConfig
.
setFlinkConfig
(
FlinkConfig
.
build
((
Map
<
String
,
String
>)
config
.
get
(
"flinkConfig"
)));
}
if
(
Asserts
.
isEqualsIgnoreCase
(
clusterConfiguration
.
getType
(),
"Yarn"
))
{
gatewayConfig
.
setType
(
GatewayType
.
YARN_
PER_JOB
);
gatewayConfig
.
setType
(
GatewayType
.
YARN_
APPLICATION
);
}
else
if
(
Asserts
.
isEqualsIgnoreCase
(
clusterConfiguration
.
getType
(),
"Kubernetes"
))
{
gatewayConfig
.
setType
(
GatewayType
.
KUBERNETES_APPLICATION
);
Map
kubernetesConfig
=
(
Map
)
config
.
get
(
"kubernetesConfig"
);
...
...
dlink-gateway/src/main/java/com/dlink/gateway/config/ClusterConfig.java
View file @
93ada5dd
...
...
@@ -20,12 +20,20 @@ public class ClusterConfig {
public
ClusterConfig
()
{
}
public
ClusterConfig
(
String
flinkConfigPath
)
{
this
.
flinkConfigPath
=
flinkConfigPath
;
}
public
ClusterConfig
(
String
flinkConfigPath
,
String
flinkLibPath
,
String
yarnConfigPath
)
{
this
.
flinkConfigPath
=
flinkConfigPath
;
this
.
flinkLibPath
=
flinkLibPath
;
this
.
yarnConfigPath
=
yarnConfigPath
;
}
public
static
ClusterConfig
build
(
String
flinkConfigPath
)
{
return
new
ClusterConfig
(
flinkConfigPath
);
}
public
static
ClusterConfig
build
(
String
flinkConfigPath
,
String
flinkLibPath
,
String
yarnConfigPath
)
{
return
new
ClusterConfig
(
flinkConfigPath
,
flinkLibPath
,
yarnConfigPath
);
}
...
...
dlink-gateway/src/main/java/com/dlink/gateway/kubernetes/KubernetesGateway.java
View file @
93ada5dd
...
...
@@ -131,11 +131,6 @@ public abstract class KubernetesGateway extends AbstractGateway {
if
(
Asserts
.
isNull
(
config
.
getFlinkConfig
().
getJobId
()))
{
throw
new
GatewayException
(
"No job id was specified. Please specify a job to which you would like to savepont."
);
}
if
(
Asserts
.
isNotNullString
(
config
.
getClusterConfig
().
getYarnConfigPath
()))
{
configuration
=
GlobalConfiguration
.
loadConfiguration
(
config
.
getClusterConfig
().
getYarnConfigPath
());
}
else
{
configuration
=
new
Configuration
();
}
SavePointResult
result
=
SavePointResult
.
build
(
getType
());
configuration
.
set
(
KubernetesConfigOptions
.
CLUSTER_ID
,
config
.
getClusterConfig
().
getAppId
());
KubernetesClusterClientFactory
clusterClientFactory
=
new
KubernetesClusterClientFactory
();
...
...
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