Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
flink-monitor
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
赵建伟
flink-monitor
Commits
54065e39
Commit
54065e39
authored
Mar 19, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
2fb0f6f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
start.sh
bin/start.sh
+2
-2
PortraitMonitorMain.java
src/main/java/com/gmei/data/monitor/PortraitMonitorMain.java
+1
-3
No files found.
bin/start.sh
View file @
54065e39
...
...
@@ -23,8 +23,8 @@ $JAR_DIR/flink-monitor-1.0-SNAPSHOT.jar \
--portraitErrGroupId
'flink_monitor_err'
\
--portraitShdGroupId
'flink_monitor_shd'
\
--portraitSucGroupId
'flink_monitor_suc'
\
--windowSize
60
0
\
--slideSize
60
0
\
--windowSize
60
\
--slideSize
60
\
--outJdbcUrl
'jdbc:mysql://172.18.44.3:3306/flink_monitor?user=root&password=5OqYM^zLwotJ3oSo&autoReconnect=true&useSSL=false'
\
--maxRetry
3
\
--retryInteral
3000
\
...
...
src/main/java/com/gmei/data/monitor/PortraitMonitorMain.java
View file @
54065e39
...
...
@@ -49,15 +49,13 @@ public class PortraitMonitorMain {
// 获得流处理环境对象
StreamExecutionEnvironment
env
=
StreamExecutionEnvironment
.
getExecutionEnvironment
();
env
.
setStreamTimeCharacteristic
(
TimeCharacteristic
.
EventTime
);
//
env.setStreamTimeCharacteristic(TimeCharacteristic.EventTime);
env
.
enableCheckpointing
(
1000
);
env
.
setStateBackend
(
new
FsStateBackend
(
checkpointPath
));
env
.
setRestartStrategy
(
RestartStrategies
.
fixedDelayRestart
(
1
,
3000
));
CheckpointConfig
config
=
env
.
getCheckpointConfig
();
config
.
enableExternalizedCheckpoints
(
CheckpointConfig
.
ExternalizedCheckpointCleanup
.
RETAIN_ON_CANCELLATION
);
// 获取数据源
DataStream
portraitErrDataStream
=
new
PortraitKafkaSource
(
env
,
...
...
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