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
01529336
Commit
01529336
authored
Mar 26, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
0a85aee5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
start.sh
bin/start.sh
+1
-1
PortraitMonitorShdOperator.java
...mei/data/monitor/operator/PortraitMonitorShdOperator.java
+0
-1
MysqlUtils.java
src/main/java/com/gmei/data/monitor/utils/MysqlUtils.java
+6
-2
No files found.
bin/start.sh
View file @
01529336
...
...
@@ -31,7 +31,7 @@ $JAR_DIR/flink-monitor-1.0-SNAPSHOT.jar \
--retryInteral
3000
\
--checkpointPath
'hdfs://bj-gmei-hdfs/user/data/flink/flink-monitor/checkpoint'
\
--parallelism
12
\
--startTime
'2020-03-26 15:
32
:00'
\
--startTime
'2020-03-26 15:
40
:00'
\
>>
/data/log/flink-monitor/flink-monitor.out 2>&1 &
tail
-10f
/data/log/flink-monitor/flink-monitor.out
...
...
src/main/java/com/gmei/data/monitor/operator/PortraitMonitorShdOperator.java
View file @
01529336
...
...
@@ -5,7 +5,6 @@ import com.alibaba.fastjson.JSONObject;
import
com.gmei.data.monitor.bean.DeviceInfo
;
import
com.gmei.data.monitor.bean.TblMonitorPortraitShd
;
import
com.gmei.data.monitor.cache.SimpleCacheService
;
import
com.gmei.data.monitor.callable.DeviceCallable
;
import
com.gmei.data.monitor.sink.PortraitShdMysqlSink
;
import
com.gmei.data.monitor.utils.DateUtils
;
import
com.gmei.data.monitor.utils.MysqlUtils
;
...
...
src/main/java/com/gmei/data/monitor/utils/MysqlUtils.java
View file @
01529336
...
...
@@ -4,12 +4,16 @@ import com.gmei.data.monitor.common.Constants;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
java.io.Serializable
;
import
java.sql.Connection
;
import
java.sql.DriverManager
;
import
java.sql.PreparedStatement
;
import
java.sql.ResultSet
;
public
class
MysqlUtils
{
/**
* @author apple
*/
public
class
MysqlUtils
implements
Serializable
{
private
String
jdbcUrl
;
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
MysqlUtils
.
class
);
...
...
@@ -36,7 +40,7 @@ public class MysqlUtils {
ps
.
close
();
connection
.
close
();
}
catch
(
Exception
e
){
logger
.
error
(
e
.
getMessage
());
}
return
rs
;
}
...
...
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