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
4b8caf36
Commit
4b8caf36
authored
Apr 04, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
11a820a4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
CtrEstimateMainTagTest.java
src/main/java/com/gmei/data/ctr/CtrEstimateMainTagTest.java
+1
-1
CtrEstimateTagOperator.java
...va/com/gmei/data/ctr/operator/CtrEstimateTagOperator.java
+1
-1
CtrEstimateTagMysqlSink.java
.../java/com/gmei/data/ctr/sink/CtrEstimateTagMysqlSink.java
+1
-0
No files found.
src/main/java/com/gmei/data/ctr/CtrEstimateMainTagTest.java
View file @
4b8caf36
...
...
@@ -31,7 +31,7 @@ public class CtrEstimateMainTagTest {
String
checkpointPath
=
parameterTool
.
get
(
"checkpointPath"
,
"hdfs://bj-gmei-hdfs/user/data/flink/ctr-estimate-tag/checkpoint"
);
Boolean
isStartFromEarliest
=
parameterTool
.
getBoolean
(
"isStartFromEarliest"
,
true
);
Boolean
isStartFromLatest
=
parameterTool
.
getBoolean
(
"isStartFromLatest"
,
false
);
String
startTime
=
parameterTool
.
get
(
"startTime"
,
"2020-04-04
17
:42:00"
);
String
startTime
=
parameterTool
.
get
(
"startTime"
,
"2020-04-04
20
:42:00"
);
Integer
parallelism
=
parameterTool
.
getInt
(
"parallelism"
,
2
);
System
.
out
.
println
(
"**********************************************************"
);
...
...
src/main/java/com/gmei/data/ctr/operator/CtrEstimateTagOperator.java
View file @
4b8caf36
...
...
@@ -111,7 +111,7 @@ public class CtrEstimateTagOperator implements BaseOperator{
return
false
;
}
});
filter
.
print
();
//
filter.print();
SingleOutputStreamOperator
map
=
filter
.
map
(
new
MapFunction
<
JSONObject
,
CtrEstimateTagEtl
>()
{
@Override
...
...
src/main/java/com/gmei/data/ctr/sink/CtrEstimateTagMysqlSink.java
View file @
4b8caf36
...
...
@@ -600,6 +600,7 @@ public class CtrEstimateTagMysqlSink extends RichSinkFunction<DeviceCurrentEstim
"last_update_time"
+
") values ('%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s')"
,
deviceCurrentEstimateTag
.
getDeviceId
(),
commodityProjectObject
.
toJSONString
(),
commodityFirstDemandsObject
.
toJSONString
(),
commodityFirstPositionsObject
.
toJSONString
(),
commodityFirstSolutionsObject
.
toJSONString
(),
...
...
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