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
7d0192b1
Commit
7d0192b1
authored
Nov 23, 2021
by
wenmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0.4.0-SNAPSHOT
parent
8c575dd9
Changes
42
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
42 changed files
with
956 additions
and
586 deletions
+956
-586
README.md
README.md
+83
-97
pom.xml
dlink-admin/pom.xml
+1
-1
StudioServiceImpl.java
...c/main/java/com/dlink/service/impl/StudioServiceImpl.java
+11
-1
SavepointsMapper.xml
dlink-admin/src/main/resources/mapper/SavepointsMapper.xml
+3
-0
pom.xml
dlink-app/pom.xml
+1
-1
pom.xml
dlink-assembly/pom.xml
+1
-1
dependency-reduced-pom.xml
dlink-client/dlink-client-1.11/dependency-reduced-pom.xml
+1
-1
pom.xml
dlink-client/dlink-client-1.11/pom.xml
+1
-1
dependency-reduced-pom.xml
dlink-client/dlink-client-1.12/dependency-reduced-pom.xml
+1
-1
pom.xml
dlink-client/dlink-client-1.12/pom.xml
+1
-1
dependency-reduced-pom.xml
dlink-client/dlink-client-1.13/dependency-reduced-pom.xml
+1
-1
pom.xml
dlink-client/dlink-client-1.13/pom.xml
+1
-1
dependency-reduced-pom.xml
dlink-client/dlink-client-1.14/dependency-reduced-pom.xml
+1
-1
pom.xml
dlink-client/dlink-client-1.14/pom.xml
+1
-1
pom.xml
dlink-client/pom.xml
+1
-1
pom.xml
dlink-common/pom.xml
+1
-1
pom.xml
dlink-connectors/dlink-connector-jdbc-1.12/pom.xml
+1
-1
pom.xml
dlink-connectors/dlink-connector-jdbc-1.13/pom.xml
+1
-1
pom.xml
dlink-connectors/pom.xml
+1
-1
pom.xml
dlink-core/pom.xml
+1
-1
JobManager.java
dlink-core/src/main/java/com/dlink/job/JobManager.java
+10
-1
dlink.sql
dlink-doc/sql/dlink.sql
+199
-442
dlink_history.sql
dlink-doc/sql/dlink_history.sql
+443
-0
pom.xml
dlink-executor/pom.xml
+1
-1
dependency-reduced-pom.xml
dlink-extends/dependency-reduced-pom.xml
+1
-1
pom.xml
dlink-extends/pom.xml
+1
-1
pom.xml
dlink-function/pom.xml
+1
-1
pom.xml
dlink-gateway/pom.xml
+1
-1
pom.xml
dlink-metadata/dlink-metadata-base/pom.xml
+1
-1
pom.xml
dlink-metadata/dlink-metadata-clickhouse/pom.xml
+1
-1
pom.xml
dlink-metadata/dlink-metadata-mysql/pom.xml
+1
-1
pom.xml
dlink-metadata/dlink-metadata-oracle/pom.xml
+1
-1
pom.xml
dlink-metadata/dlink-metadata-postgresql/pom.xml
+1
-1
pom.xml
dlink-metadata/pom.xml
+1
-1
pom.xml
dlink-web/pom.xml
+1
-1
index.tsx
...c/components/Studio/StudioConsole/StudioProcess/index.tsx
+0
-1
index.tsx
.../components/Studio/StudioLeftTool/StudioCluster/index.tsx
+165
-4
index.tsx
...mponents/Studio/StudioRightTool/StudioSavePoint/index.tsx
+2
-3
index.tsx
...components/Studio/StudioRightTool/StudioSetting/index.tsx
+5
-5
pages.ts
dlink-web/src/locales/zh-CN/pages.ts
+1
-1
Welcome.tsx
dlink-web/src/pages/Welcome.tsx
+4
-1
pom.xml
pom.xml
+1
-1
No files found.
README.md
View file @
7d0192b1
This diff is collapsed.
Click to expand it.
dlink-admin/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink
</artifactId>
<artifactId>
dlink
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-admin/src/main/java/com/dlink/service/impl/StudioServiceImpl.java
View file @
7d0192b1
...
@@ -28,10 +28,13 @@ import com.dlink.session.SessionInfo;
...
@@ -28,10 +28,13 @@ import com.dlink.session.SessionInfo;
import
com.dlink.session.SessionPool
;
import
com.dlink.session.SessionPool
;
import
com.fasterxml.jackson.databind.JsonNode
;
import
com.fasterxml.jackson.databind.JsonNode
;
import
com.fasterxml.jackson.databind.node.ObjectNode
;
import
com.fasterxml.jackson.databind.node.ObjectNode
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -44,6 +47,8 @@ import java.util.Map;
...
@@ -44,6 +47,8 @@ import java.util.Map;
@Service
@Service
public
class
StudioServiceImpl
implements
StudioService
{
public
class
StudioServiceImpl
implements
StudioService
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
StudioServiceImpl
.
class
);
@Autowired
@Autowired
private
ClusterService
clusterService
;
private
ClusterService
clusterService
;
@Autowired
@Autowired
...
@@ -147,7 +152,12 @@ public class StudioServiceImpl implements StudioService {
...
@@ -147,7 +152,12 @@ public class StudioServiceImpl implements StudioService {
public
List
<
JsonNode
>
listJobs
(
Integer
clusterId
)
{
public
List
<
JsonNode
>
listJobs
(
Integer
clusterId
)
{
Cluster
cluster
=
clusterService
.
getById
(
clusterId
);
Cluster
cluster
=
clusterService
.
getById
(
clusterId
);
Asserts
.
checkNotNull
(
cluster
,
"该集群不存在"
);
Asserts
.
checkNotNull
(
cluster
,
"该集群不存在"
);
return
FlinkAPI
.
build
(
cluster
.
getJobManagerHost
()).
listJobs
();
try
{
return
FlinkAPI
.
build
(
cluster
.
getJobManagerHost
()).
listJobs
();
}
catch
(
Exception
e
)
{
logger
.
info
(
"查询作业时集群不存在"
);
}
return
new
ArrayList
<>();
}
}
@Override
@Override
...
...
dlink-admin/src/main/resources/mapper/SavepointsMapper.xml
View file @
7d0192b1
...
@@ -9,6 +9,9 @@
...
@@ -9,6 +9,9 @@
dlink_savepoints a
dlink_savepoints a
<where>
<where>
1=1
1=1
<if
test=
'param.taskId!=null'
>
and a.task_id = #{param.taskId}
</if>
<if
test=
'param.name!=null and param.name!=""'
>
<if
test=
'param.name!=null and param.name!=""'
>
and a.name like "%${param.name}%"
and a.name like "%${param.name}%"
</if>
</if>
...
...
dlink-app/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink
</artifactId>
<artifactId>
dlink
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-assembly/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink
</artifactId>
<artifactId>
dlink
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-client/dlink-client-1.11/dependency-reduced-pom.xml
View file @
7d0192b1
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<parent>
<parent>
<artifactId>
dlink-client
</artifactId>
<artifactId>
dlink-client
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
dlink-client-1.11
</artifactId>
<artifactId>
dlink-client-1.11
</artifactId>
...
...
dlink-client/dlink-client-1.11/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink-client
</artifactId>
<artifactId>
dlink-client
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-client/dlink-client-1.12/dependency-reduced-pom.xml
View file @
7d0192b1
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<parent>
<parent>
<artifactId>
dlink-client
</artifactId>
<artifactId>
dlink-client
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
dlink-client-1.12
</artifactId>
<artifactId>
dlink-client-1.12
</artifactId>
...
...
dlink-client/dlink-client-1.12/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink-client
</artifactId>
<artifactId>
dlink-client
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-client/dlink-client-1.13/dependency-reduced-pom.xml
View file @
7d0192b1
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<parent>
<parent>
<artifactId>
dlink-client
</artifactId>
<artifactId>
dlink-client
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
dlink-client-1.13
</artifactId>
<artifactId>
dlink-client-1.13
</artifactId>
...
...
dlink-client/dlink-client-1.13/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink-client
</artifactId>
<artifactId>
dlink-client
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-client/dlink-client-1.14/dependency-reduced-pom.xml
View file @
7d0192b1
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<parent>
<parent>
<artifactId>
dlink-client
</artifactId>
<artifactId>
dlink-client
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
dlink-client-1.14
</artifactId>
<artifactId>
dlink-client-1.14
</artifactId>
...
...
dlink-client/dlink-client-1.14/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink-client
</artifactId>
<artifactId>
dlink-client
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-client/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink
</artifactId>
<artifactId>
dlink
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-common/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink
</artifactId>
<artifactId>
dlink
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-connectors/dlink-connector-jdbc-1.12/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink-connectors
</artifactId>
<artifactId>
dlink-connectors
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-connectors/dlink-connector-jdbc-1.13/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink-connectors
</artifactId>
<artifactId>
dlink-connectors
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-connectors/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink
</artifactId>
<artifactId>
dlink
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
...
...
dlink-core/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink
</artifactId>
<artifactId>
dlink
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<packaging>
jar
</packaging>
<packaging>
jar
</packaging>
...
...
dlink-core/src/main/java/com/dlink/job/JobManager.java
View file @
7d0192b1
...
@@ -29,6 +29,8 @@ import com.fasterxml.jackson.databind.node.ObjectNode;
...
@@ -29,6 +29,8 @@ import com.fasterxml.jackson.databind.node.ObjectNode;
import
org.apache.flink.runtime.jobgraph.JobGraph
;
import
org.apache.flink.runtime.jobgraph.JobGraph
;
import
org.apache.flink.table.api.StatementSet
;
import
org.apache.flink.table.api.StatementSet
;
import
org.apache.flink.table.api.TableResult
;
import
org.apache.flink.table.api.TableResult
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -42,6 +44,8 @@ import java.util.List;
...
@@ -42,6 +44,8 @@ import java.util.List;
**/
**/
public
class
JobManager
extends
RunTime
{
public
class
JobManager
extends
RunTime
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
JobManager
.
class
);
private
JobHandler
handler
;
private
JobHandler
handler
;
private
String
sessionId
;
private
String
sessionId
;
private
Integer
maxRowNum
=
100
;
private
Integer
maxRowNum
=
100
;
...
@@ -375,7 +379,12 @@ public class JobManager extends RunTime {
...
@@ -375,7 +379,12 @@ public class JobManager extends RunTime {
Gateway
.
build
(
config
.
getGatewayConfig
()).
savepointJob
();
Gateway
.
build
(
config
.
getGatewayConfig
()).
savepointJob
();
return
true
;
return
true
;
}
else
{
}
else
{
return
FlinkAPI
.
build
(
config
.
getAddress
()).
stop
(
jobId
);
try
{
return
FlinkAPI
.
build
(
config
.
getAddress
()).
stop
(
jobId
);
}
catch
(
Exception
e
){
logger
.
info
(
"停止作业时集群不存在"
);
}
return
false
;
}
}
}
}
...
...
dlink-doc/sql/dlink.sql
View file @
7d0192b1
This diff is collapsed.
Click to expand it.
dlink-doc/sql/dlink_history.sql
0 → 100644
View file @
7d0192b1
This diff is collapsed.
Click to expand it.
dlink-executor/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink
</artifactId>
<artifactId>
dlink
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-extends/dependency-reduced-pom.xml
View file @
7d0192b1
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<parent>
<parent>
<artifactId>
dlink
</artifactId>
<artifactId>
dlink
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
dlink-extends
</artifactId>
<artifactId>
dlink-extends
</artifactId>
...
...
dlink-extends/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink
</artifactId>
<artifactId>
dlink
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-function/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink
</artifactId>
<artifactId>
dlink
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-gateway/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink
</artifactId>
<artifactId>
dlink
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-metadata/dlink-metadata-base/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink-metadata
</artifactId>
<artifactId>
dlink-metadata
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-metadata/dlink-metadata-clickhouse/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink-metadata
</artifactId>
<artifactId>
dlink-metadata
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-metadata/dlink-metadata-mysql/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink-metadata
</artifactId>
<artifactId>
dlink-metadata
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-metadata/dlink-metadata-oracle/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink-metadata
</artifactId>
<artifactId>
dlink-metadata
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-metadata/dlink-metadata-postgresql/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink-metadata
</artifactId>
<artifactId>
dlink-metadata
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-metadata/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink
</artifactId>
<artifactId>
dlink
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
dlink-web/pom.xml
View file @
7d0192b1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
dlink
</artifactId>
<artifactId>
dlink
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
...
...
dlink-web/src/components/Studio/StudioConsole/StudioProcess/index.tsx
View file @
7d0192b1
...
@@ -44,7 +44,6 @@ const StudioProcess = (props: any) => {
...
@@ -44,7 +44,6 @@ const StudioProcess = (props: any) => {
overlay=
{
overlay=
{
<
Menu
onClick=
{
({
key
})
=>
savepoint
(
key
,
item
)
}
>
<
Menu
onClick=
{
({
key
})
=>
savepoint
(
key
,
item
)
}
>
<
Menu
.
Item
key=
"trigger"
>
Trigger
</
Menu
.
Item
>
<
Menu
.
Item
key=
"trigger"
>
Trigger
</
Menu
.
Item
>
<
Menu
.
Item
key=
"dispose"
>
Dispose
</
Menu
.
Item
>
<
Menu
.
Item
key=
"stop"
>
Stop
</
Menu
.
Item
>
<
Menu
.
Item
key=
"stop"
>
Stop
</
Menu
.
Item
>
<
Menu
.
Item
key=
"cancel"
>
Cancel
</
Menu
.
Item
>
<
Menu
.
Item
key=
"cancel"
>
Cancel
</
Menu
.
Item
>
</
Menu
>
</
Menu
>
...
...
dlink-web/src/components/Studio/StudioLeftTool/StudioCluster/index.tsx
View file @
7d0192b1
import
{
import
{
message
,
Button
,
Table
,
Empty
,
Divider
,
message
,
Button
,
Table
,
Empty
,
Divider
,
Tooltip
Tooltip
,
Drawer
}
from
"antd"
;
}
from
"antd"
;
import
ProDescriptions
from
'@ant-design/pro-descriptions'
;
import
{
StateType
}
from
"@/pages/FlinkSqlStudio/model"
;
import
{
StateType
}
from
"@/pages/FlinkSqlStudio/model"
;
import
{
connect
}
from
"umi"
;
import
{
connect
}
from
"umi"
;
import
{
useState
}
from
"react"
;
import
{
useState
}
from
"react"
;
...
@@ -14,19 +15,158 @@ import React from "react";
...
@@ -14,19 +15,158 @@ import React from "react";
import
{
showCluster
}
from
"../../StudioEvent/DDL"
;
import
{
showCluster
}
from
"../../StudioEvent/DDL"
;
import
{
handleAddOrUpdate
}
from
"@/components/Common/crud"
;
import
{
handleAddOrUpdate
}
from
"@/components/Common/crud"
;
import
ClusterForm
from
"@/pages/Cluster/components/ClusterForm"
;
import
ClusterForm
from
"@/pages/Cluster/components/ClusterForm"
;
import
{
SavePointTableListItem
}
from
"@/components/Studio/StudioRightTool/StudioSavePoint/data"
;
const
StudioCluster
=
(
props
:
any
)
=>
{
const
StudioCluster
=
(
props
:
any
)
=>
{
const
{
cluster
,
dispatch
}
=
props
;
const
{
cluster
,
dispatch
}
=
props
;
const
[
createModalVisible
,
handleCreateModalVisible
]
=
useState
<
boolean
>
(
false
);
const
[
createModalVisible
,
handleCreateModalVisible
]
=
useState
<
boolean
>
(
false
);
const
[
row
,
setRow
]
=
useState
<
{}
>
();
const
getColumns
=
()
=>
{
const
getColumns
=
()
=>
{
let
columns
:
any
=
[{
return
[{
title
:
"集群名"
,
title
:
"集群名"
,
dataIndex
:
"alias"
,
dataIndex
:
"alias"
,
key
:
"alias"
,
key
:
"alias"
,
sorter
:
true
,
sorter
:
true
,
},
{
render
:
(
dom
,
entity
)
=>
{
return
<
a
onClick=
{
()
=>
setRow
(
entity
)
}
>
{
dom
}
</
a
>;
},
}];
};
const
getAllColumns
=
()
=>
{
return
[{
title
:
"集群名"
,
dataIndex
:
"alias"
,
key
:
"alias"
,
},{
title
:
'名称'
,
dataIndex
:
'name'
,
},
{
title
:
'集群ID'
,
dataIndex
:
'id'
,
},
{
title
:
'类型'
,
sorter
:
true
,
dataIndex
:
'type'
,
filters
:
[
{
text
:
'Yarn Session'
,
value
:
'yarn-session'
,
},
{
text
:
'Standalone'
,
value
:
'standalone'
,
},
{
text
:
'Yarn Per-Job'
,
value
:
'yarn-per-job'
,
},
{
text
:
'Yarn Application'
,
value
:
'yarn-application'
,
},
],
filterMultiple
:
false
,
valueEnum
:
{
'yarn-session'
:
{
text
:
'Yarn Session'
},
'standalone'
:
{
text
:
'Standalone'
},
'yarn-per-job'
:
{
text
:
'Yarn Per-Job'
},
'yarn-application'
:
{
text
:
'Yarn Application'
},
},
},
{
title
:
'JobManager HA 地址'
,
sorter
:
true
,
dataIndex
:
'hosts'
,
valueType
:
'textarea'
,
},
{
title
:
'当前 JobManager 地址'
,
sorter
:
true
,
dataIndex
:
'jobManagerHost'
,
},{
title
:
'版本'
,
sorter
:
true
,
dataIndex
:
'version'
,
},
{
title
:
'状态'
,
dataIndex
:
'status'
,
filters
:
[
{
text
:
'正常'
,
value
:
1
,
},
{
text
:
'异常'
,
value
:
0
,
},
],
filterMultiple
:
false
,
valueEnum
:
{
1
:
{
text
:
'正常'
,
status
:
'Success'
},
0
:
{
text
:
'异常'
,
status
:
'Error'
},
},
},
{
title
:
'注释'
,
sorter
:
true
,
valueType
:
'textarea'
,
dataIndex
:
'note'
,
},
{
title
:
'是否启用'
,
dataIndex
:
'enabled'
,
filters
:
[
{
text
:
'已启用'
,
value
:
1
,
},
{
text
:
'已禁用'
,
value
:
0
,
},
],
filterMultiple
:
false
,
valueEnum
:
{
true
:
{
text
:
'已启用'
,
status
:
'Success'
},
false
:
{
text
:
'已禁用'
,
status
:
'Error'
},
},
},
{
title
:
'注册方式'
,
dataIndex
:
'autoRegisters'
,
filters
:
[
{
text
:
'自动'
,
value
:
1
,
},
{
text
:
'手动'
,
value
:
0
,
},
],
filterMultiple
:
false
,
valueEnum
:
{
true
:
{
text
:
'自动'
,
status
:
'Success'
},
false
:
{
text
:
'手动'
,
status
:
'Error'
},
},
},
{
title
:
'创建时间'
,
dataIndex
:
'createTime'
,
valueType
:
'dateTime'
,
},
{
title
:
'最近更新时间'
,
dataIndex
:
'updateTime'
,
valueType
:
'dateTime'
,
},
{
title
:
'操作'
,
title
:
'操作'
,
dataIndex
:
'option'
,
dataIndex
:
'option'
,
valueType
:
'option'
,
valueType
:
'option'
,
...
@@ -46,7 +186,6 @@ const StudioCluster = (props: any) => {
...
@@ -46,7 +186,6 @@ const StudioCluster = (props: any) => {
</
a
>
</
a
>
],
],
},];
},];
return
columns
;
};
};
const
onRefreshCluster
=
()
=>
{
const
onRefreshCluster
=
()
=>
{
...
@@ -91,6 +230,28 @@ const StudioCluster = (props: any) => {
...
@@ -91,6 +230,28 @@ const StudioCluster = (props: any) => {
}
}
}
}
modalVisible=
{
createModalVisible
}
modalVisible=
{
createModalVisible
}
/>
/>
<
Drawer
width=
{
600
}
visible=
{
!!
row
}
onClose=
{
()
=>
{
setRow
(
undefined
);
}
}
closable=
{
false
}
>
{
row
?.
name
&&
(
<
ProDescriptions
column=
{
2
}
title=
{
row
?.
name
}
request=
{
async
()
=>
({
data
:
row
||
{},
})
}
params=
{
{
id
:
row
?.
name
,
}
}
columns=
{
getAllColumns
()
}
/>
)
}
</
Drawer
>
</>
</>
);
);
};
};
...
...
dlink-web/src/components/Studio/StudioRightTool/StudioSavePoint/index.tsx
View file @
7d0192b1
import
React
,
{
useRef
,
useState
}
from
"react"
;
import
React
,
{
useRef
,
useState
}
from
"react"
;
import
{
DownOutlined
,
HeartOutlined
,
PlusOutlined
,
UserOutlined
}
from
'@ant-design/icons'
;
import
{
DownOutlined
,
HeartOutlined
,
PlusOutlined
,
UserOutlined
}
from
'@ant-design/icons'
;
import
{
ActionType
,
ProColumns
}
from
"@ant-design/pro-table"
;
import
{
ActionType
,
ProColumns
}
from
"@ant-design/pro-table"
;
import
{
Drawer
}
from
'antd'
;
import
{
Drawer
,
Table
}
from
'antd'
;
import
{
PageContainer
}
from
'@ant-design/pro-layout'
;
import
ProTable
from
'@ant-design/pro-table'
;
import
ProTable
from
'@ant-design/pro-table'
;
import
ProDescriptions
from
'@ant-design/pro-descriptions'
;
import
ProDescriptions
from
'@ant-design/pro-descriptions'
;
import
{
queryData
}
from
"@/components/Common/crud"
;
import
{
queryData
}
from
"@/components/Common/crud"
;
...
@@ -74,7 +73,7 @@ const StudioSavePoint: React.FC<{}> = (props: any) => {
...
@@ -74,7 +73,7 @@ const StudioSavePoint: React.FC<{}> = (props: any) => {
<
ProTable
<
SavePointTableListItem
>
<
ProTable
<
SavePointTableListItem
>
actionRef=
{
actionRef
}
actionRef=
{
actionRef
}
rowKey="id"
rowKey="id"
request=
{
(
params
,
sorter
,
filter
)
=>
queryData
(
url
,
{
taskId
:
current
.
taskId
,...
params
,
sorter
,
filter
})
}
request=
{
(
params
,
sorter
,
filter
)
=>
queryData
(
url
,
{
taskId
:
current
.
key
,...
params
,
sorter
,
filter
})
}
columns=
{
columns
}
columns=
{
columns
}
search=
{
false
}
search=
{
false
}
/
>
/
>
...
...
dlink-web/src/components/Studio/StudioRightTool/StudioSetting/index.tsx
View file @
7d0192b1
...
@@ -178,11 +178,11 @@ const StudioSetting = (props: any) => {
...
@@ -178,11 +178,11 @@ const StudioSetting = (props: any) => {
label=
"SavePoint策略"
className=
{
styles
.
form_item
}
name=
"savePointStrategy"
label=
"SavePoint策略"
className=
{
styles
.
form_item
}
name=
"savePointStrategy"
tooltip=
'指定 SavePoint策略,默认为禁用'
tooltip=
'指定 SavePoint策略,默认为禁用'
>
>
<
Select
defaultValue=
"0"
>
<
Select
defaultValue=
{
0
}
>
<
Option
value=
"0"
>
禁用
</
Option
>
<
Option
value=
{
0
}
>
禁用
</
Option
>
<
Option
value=
"1"
>
最近一次
</
Option
>
<
Option
value=
{
1
}
>
最近一次
</
Option
>
<
Option
value=
"2"
>
最早一次
</
Option
>
<
Option
value=
{
2
}
>
最早一次
</
Option
>
<
Option
value=
"3"
>
自定义
</
Option
>
<
Option
value=
{
3
}
>
自定义
</
Option
>
</
Select
>
</
Select
>
</
Form
.
Item
>
</
Form
.
Item
>
{
current
.
task
.
savePointStrategy
==
3
?
{
current
.
task
.
savePointStrategy
==
3
?
...
...
dlink-web/src/locales/zh-CN/pages.ts
View file @
7d0192b1
...
@@ -29,7 +29,7 @@ export default {
...
@@ -29,7 +29,7 @@ export default {
'pages.welcome.link'
:
'欢迎加入'
,
'pages.welcome.link'
:
'欢迎加入'
,
'pages.welcome.star'
:
'欢迎 Star '
,
'pages.welcome.star'
:
'欢迎 Star '
,
'pages.welcome.advancedLayout'
:
'Github'
,
'pages.welcome.advancedLayout'
:
'Github'
,
'pages.welcome.alertMessage'
:
'实时计算平台 Dlink & Apache Flink 即将发布,目前为体验版,版本号为 0.
3.2
。'
,
'pages.welcome.alertMessage'
:
'实时计算平台 Dlink & Apache Flink 即将发布,目前为体验版,版本号为 0.
4.0
。'
,
'pages.admin.subPage.title'
:
' 这个页面只有 admin 权限才能查看'
,
'pages.admin.subPage.title'
:
' 这个页面只有 admin 权限才能查看'
,
'pages.admin.subPage.alertMessage'
:
'umi ui 现已发布,欢迎使用 npm run ui 启动体验。'
,
'pages.admin.subPage.alertMessage'
:
'umi ui 现已发布,欢迎使用 npm run ui 启动体验。'
,
'pages.searchTable.createForm.newRule'
:
'新建规则'
,
'pages.searchTable.createForm.newRule'
:
'新建规则'
,
...
...
dlink-web/src/pages/Welcome.tsx
View file @
7d0192b1
...
@@ -20,7 +20,7 @@ export default (): React.ReactNode => {
...
@@ -20,7 +20,7 @@ export default (): React.ReactNode => {
<
Alert
<
Alert
message=
{
intl
.
formatMessage
({
message=
{
intl
.
formatMessage
({
id
:
'pages.welcome.alertMessage'
,
id
:
'pages.welcome.alertMessage'
,
defaultMessage
:
'实时计算平台 Dlink & Apache Flink 即将发布,目前为体验版,版本号为 0.
3.2
。'
,
defaultMessage
:
'实时计算平台 Dlink & Apache Flink 即将发布,目前为体验版,版本号为 0.
4.0
。'
,
})
}
})
}
type=
"success"
type=
"success"
showIcon
showIcon
...
@@ -408,6 +408,9 @@ export default (): React.ReactNode => {
...
@@ -408,6 +408,9 @@ export default (): React.ReactNode => {
<
li
>
<
li
>
<
Link
>
新增 yarn-perjob 和 yarn-application 的启动时多样化集群配置生效
</
Link
>
<
Link
>
新增 yarn-perjob 和 yarn-application 的启动时多样化集群配置生效
</
Link
>
</
li
>
</
li
>
<
li
>
<
Link
>
优化项目结构与打包结构
</
Link
>
</
li
>
</
ul
>
</
ul
>
</
Paragraph
>
</
Paragraph
>
</
Timeline
.
Item
>
</
Timeline
.
Item
>
...
...
pom.xml
View file @
7d0192b1
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<artifactId>
dlink
</artifactId>
<artifactId>
dlink
</artifactId>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
<version>
0.
3.2
</version>
<version>
0.
4.0-SNAPSHOT
</version>
<modules>
<modules>
<module>
dlink-common
</module>
<module>
dlink-common
</module>
...
...
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