Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
ctr-estimate
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
赵建伟
ctr-estimate
Commits
0253c1d5
Commit
0253c1d5
authored
Apr 04, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
bb4b01e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
start.sh
bin/start.sh
+1
-1
CtrEstimateClkMysqlSink.java
.../java/com/gmei/data/ctr/sink/CtrEstimateClkMysqlSink.java
+1
-2
No files found.
bin/start.sh
View file @
0253c1d5
...
@@ -26,7 +26,7 @@ $JAR_DIR/ctr-estimate-1.0-SNAPSHOT.jar \
...
@@ -26,7 +26,7 @@ $JAR_DIR/ctr-estimate-1.0-SNAPSHOT.jar \
--retryInteral
3000
\
--retryInteral
3000
\
--checkpointPath
'hdfs://bj-gmei-hdfs/user/data/flink/ctr-estimate/checkpoint'
\
--checkpointPath
'hdfs://bj-gmei-hdfs/user/data/flink/ctr-estimate/checkpoint'
\
--parallelism
6
\
--parallelism
6
\
--startTime
'2020-04-04 10:5
3
:00'
\
--startTime
'2020-04-04 10:5
5
:00'
\
>>
/data/log/ctr-estimate/ctr-estimate.out 2>&1 &
>>
/data/log/ctr-estimate/ctr-estimate.out 2>&1 &
tail
-10f
/data/log/ctr-estimate/ctr-estimate.out
tail
-10f
/data/log/ctr-estimate/ctr-estimate.out
...
...
src/main/java/com/gmei/data/ctr/sink/CtrEstimateClkMysqlSink.java
View file @
0253c1d5
...
@@ -83,7 +83,6 @@ public class CtrEstimateClkMysqlSink extends RichSinkFunction<DeviceCurrentEstim
...
@@ -83,7 +83,6 @@ public class CtrEstimateClkMysqlSink extends RichSinkFunction<DeviceCurrentEstim
newDeviceCurrentEstimateClk
.
setContentCardClick
(
resultSet
.
getLong
(
"content_card_click"
)
+
deviceCurrentEstimateClk
.
getContentCardClick
());
newDeviceCurrentEstimateClk
.
setContentCardClick
(
resultSet
.
getLong
(
"content_card_click"
)
+
deviceCurrentEstimateClk
.
getContentCardClick
());
newDeviceCurrentEstimateClk
.
setTractateCardClick
(
resultSet
.
getLong
(
"tractate_card_click"
)
+
deviceCurrentEstimateClk
.
getTractateCardClick
());
newDeviceCurrentEstimateClk
.
setTractateCardClick
(
resultSet
.
getLong
(
"tractate_card_click"
)
+
deviceCurrentEstimateClk
.
getTractateCardClick
());
newDeviceCurrentEstimateClk
.
setPartitionDate
(
resultSet
.
getString
(
"partition_date"
));
newDeviceCurrentEstimateClk
.
setPartitionDate
(
resultSet
.
getString
(
"partition_date"
));
newDeviceCurrentEstimateClk
.
setLastUpdateTime
(
DateUtils
.
getTimeStr
(
new
Date
()));
}
}
if
(
null
!=
newDeviceCurrentEstimateClk
){
if
(
null
!=
newDeviceCurrentEstimateClk
){
statement
.
executeUpdate
(
String
.
format
(
"update device_current_estimate_clk set "
+
statement
.
executeUpdate
(
String
.
format
(
"update device_current_estimate_clk set "
+
...
@@ -95,7 +94,7 @@ public class CtrEstimateClkMysqlSink extends RichSinkFunction<DeviceCurrentEstim
...
@@ -95,7 +94,7 @@ public class CtrEstimateClkMysqlSink extends RichSinkFunction<DeviceCurrentEstim
newDeviceCurrentEstimateClk
.
getAnswerCardClick
(),
newDeviceCurrentEstimateClk
.
getAnswerCardClick
(),
newDeviceCurrentEstimateClk
.
getContentCardClick
(),
newDeviceCurrentEstimateClk
.
getContentCardClick
(),
newDeviceCurrentEstimateClk
.
getTractateCardClick
(),
newDeviceCurrentEstimateClk
.
getTractateCardClick
(),
newDeviceCurrentEstimateClk
.
getLastUpdateTime
(
),
DateUtils
.
getTimeStr
(
new
Date
()
),
newDeviceCurrentEstimateClk
.
getDeviceId
(),
newDeviceCurrentEstimateClk
.
getDeviceId
(),
newDeviceCurrentEstimateClk
.
getPartitionDate
()
newDeviceCurrentEstimateClk
.
getPartitionDate
()
)
)
...
...
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