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
397a87f4
Commit
397a87f4
authored
Apr 04, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
300d7914
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
start_tag.sh
bin/start_tag.sh
+1
-1
TidbMysqlAsyncSource.java
...n/java/com/gmei/data/ctr/source/TidbMysqlAsyncSource.java
+5
-5
No files found.
bin/start_tag.sh
View file @
397a87f4
...
@@ -27,7 +27,7 @@ $JAR_DIR/ctr-estimate-1.0-SNAPSHOT.jar \
...
@@ -27,7 +27,7 @@ $JAR_DIR/ctr-estimate-1.0-SNAPSHOT.jar \
--retryInteral
3000
\
--retryInteral
3000
\
--checkpointPath
'hdfs://bj-gmei-hdfs/user/data/flink/ctr-estimate-tag/checkpoint'
\
--checkpointPath
'hdfs://bj-gmei-hdfs/user/data/flink/ctr-estimate-tag/checkpoint'
\
--parallelism
6
\
--parallelism
6
\
--startTime
'2020-04-04 11:5
3
:00'
\
--startTime
'2020-04-04 11:5
6
:00'
\
>>
/data/log/ctr-estimate/ctr-estimate-tag.out 2>&1 &
>>
/data/log/ctr-estimate/ctr-estimate-tag.out 2>&1 &
tail
-f
/data/log/ctr-estimate/ctr-estimate-tag.out
tail
-f
/data/log/ctr-estimate/ctr-estimate-tag.out
...
...
src/main/java/com/gmei/data/ctr/source/TidbMysqlAsyncSource.java
View file @
397a87f4
...
@@ -70,21 +70,21 @@ public class TidbMysqlAsyncSource extends RichAsyncFunction<CtrEstimateTagEtl, D
...
@@ -70,21 +70,21 @@ public class TidbMysqlAsyncSource extends RichAsyncFunction<CtrEstimateTagEtl, D
if
(
"commodity"
.
equals
(
type
)
||
"content"
.
equals
(
type
)){
if
(
"commodity"
.
equals
(
type
)
||
"content"
.
equals
(
type
)){
String
sql
=
null
;
String
sql
=
null
;
String
cardContentType
=
ctrEstimateTagEtl
.
getCardContentType
();
String
cardContentType
=
ctrEstimateTagEtl
.
getCardContentType
();
Lo
ng
cardId
=
ctrEstimateTagEtl
.
getCardId
();
Stri
ng
cardId
=
ctrEstimateTagEtl
.
getCardId
();
if
(
"commodity"
.
equals
(
type
)
&&
"service"
.
equals
(
cardContentType
)){
if
(
"commodity"
.
equals
(
type
)
&&
"service"
.
equals
(
cardContentType
)){
sql
=
String
.
format
(
"select first_demands,first_positions,first_solutions,second_demands,second_positions,second_solutions,project_tags "
+
sql
=
String
.
format
(
"select first_demands,first_positions,first_solutions,second_demands,second_positions,second_solutions,project_tags "
+
"from strategy_service_tagv3_info where service_id = '%
d
'"
,
cardId
);
"from strategy_service_tagv3_info where service_id = '%
s
'"
,
cardId
);
}
}
if
(
"content"
.
equals
(
type
)){
if
(
"content"
.
equals
(
type
)){
if
(
"diary"
.
equals
(
cardContentType
)){
if
(
"diary"
.
equals
(
cardContentType
)){
sql
=
String
.
format
(
"select first_demands,first_positions,first_solutions,second_demands,second_positions,second_solutions,project_tags "
+
sql
=
String
.
format
(
"select first_demands,first_positions,first_solutions,second_demands,second_positions,second_solutions,project_tags "
+
"from strategy_content_tagv3_info where content_id = '%
d
'"
,
cardId
);
"from strategy_content_tagv3_info where content_id = '%
s
'"
,
cardId
);
}
else
if
(
"tractate"
.
equals
(
cardContentType
)){
}
else
if
(
"tractate"
.
equals
(
cardContentType
)){
sql
=
String
.
format
(
"select first_demands,first_positions,first_solutions,second_demands,second_positions,second_solutions,project_tags "
+
sql
=
String
.
format
(
"select first_demands,first_positions,first_solutions,second_demands,second_positions,second_solutions,project_tags "
+
"from strategy_tractate_tagv3_info where content_id = '%
d
'"
,
cardId
);
"from strategy_tractate_tagv3_info where content_id = '%
s
'"
,
cardId
);
}
else
if
(
"answer"
.
equals
(
cardContentType
)){
}
else
if
(
"answer"
.
equals
(
cardContentType
)){
sql
=
String
.
format
(
"select first_demands,first_positions,first_solutions,second_demands,second_positions,second_solutions,project_tags "
+
sql
=
String
.
format
(
"select first_demands,first_positions,first_solutions,second_demands,second_positions,second_solutions,project_tags "
+
"from strategy_answer_tagv3_info where content_id = '%
d
'"
,
cardId
);
"from strategy_answer_tagv3_info where content_id = '%
s
'"
,
cardId
);
}
}
}
}
if
(
StringUtils
.
isNotBlank
(
sql
)){
if
(
StringUtils
.
isNotBlank
(
sql
)){
...
...
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