Commit 0253c1d5 authored by 赵建伟's avatar 赵建伟

update codes

parent bb4b01e4
...@@ -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:53:00' \ --startTime '2020-04-04 10:55: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
......
...@@ -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()
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment