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
300d7914
Commit
300d7914
authored
Apr 04, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
49246988
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
start_tag.sh
bin/start_tag.sh
+1
-1
CtrEstimateTagEtl.java
src/main/java/com/gmei/data/ctr/bean/CtrEstimateTagEtl.java
+4
-4
CtrEstimateTagOperator.java
...va/com/gmei/data/ctr/operator/CtrEstimateTagOperator.java
+2
-2
No files found.
bin/start_tag.sh
View file @
300d7914
...
@@ -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:
42
:00'
\
--startTime
'2020-04-04 11:
53
: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/bean/CtrEstimateTagEtl.java
View file @
300d7914
...
@@ -11,13 +11,13 @@ public class CtrEstimateTagEtl {
...
@@ -11,13 +11,13 @@ public class CtrEstimateTagEtl {
private
String
estimateType
;
private
String
estimateType
;
private
Integer
count
;
private
Integer
count
;
private
String
cardContentType
;
private
String
cardContentType
;
private
Lo
ng
cardId
;
private
Stri
ng
cardId
;
private
String
partitionDate
;
private
String
partitionDate
;
private
String
lastUpdateTime
;
private
String
lastUpdateTime
;
private
String
type
;
private
String
type
;
private
String
keyWord
;
private
String
keyWord
;
public
CtrEstimateTagEtl
(
String
deviceId
,
String
cardContentType
,
Lo
ng
cardId
,
String
estimateType
,
Integer
count
,
String
partitionDate
,
String
lastUpdateTime
,
String
type
,
String
keyWord
)
{
public
CtrEstimateTagEtl
(
String
deviceId
,
String
cardContentType
,
Stri
ng
cardId
,
String
estimateType
,
Integer
count
,
String
partitionDate
,
String
lastUpdateTime
,
String
type
,
String
keyWord
)
{
this
.
deviceId
=
deviceId
;
this
.
deviceId
=
deviceId
;
this
.
cardContentType
=
cardContentType
;
this
.
cardContentType
=
cardContentType
;
this
.
cardId
=
cardId
;
this
.
cardId
=
cardId
;
...
@@ -48,11 +48,11 @@ public class CtrEstimateTagEtl {
...
@@ -48,11 +48,11 @@ public class CtrEstimateTagEtl {
this
.
cardContentType
=
cardContentType
;
this
.
cardContentType
=
cardContentType
;
}
}
public
Lo
ng
getCardId
()
{
public
Stri
ng
getCardId
()
{
return
cardId
;
return
cardId
;
}
}
public
void
setCardId
(
Lo
ng
cardId
)
{
public
void
setCardId
(
Stri
ng
cardId
)
{
this
.
cardId
=
cardId
;
this
.
cardId
=
cardId
;
}
}
...
...
src/main/java/com/gmei/data/ctr/operator/CtrEstimateTagOperator.java
View file @
300d7914
...
@@ -82,7 +82,7 @@ public class CtrEstimateTagOperator implements BaseOperator{
...
@@ -82,7 +82,7 @@ public class CtrEstimateTagOperator implements BaseOperator{
}
}
if
(
StringUtils
.
isNotBlank
(
clId
))
{
if
(
StringUtils
.
isNotBlank
(
clId
))
{
String
cardContentType
=
paramsObject
.
getString
(
"card_content_type"
);
String
cardContentType
=
paramsObject
.
getString
(
"card_content_type"
);
Long
cardId
=
paramsObject
.
getLo
ng
(
"card_id"
);
String
cardId
=
paramsObject
.
getStri
ng
(
"card_id"
);
if
(
null
!=
cardContentType
&&
null
!=
cardId
)
{
if
(
null
!=
cardContentType
&&
null
!=
cardId
)
{
if
(
"service"
.
equals
(
cardContentType
)
||
"diary"
.
equals
(
cardContentType
)
||
if
(
"service"
.
equals
(
cardContentType
)
||
"diary"
.
equals
(
cardContentType
)
||
"tractate"
.
equals
(
cardContentType
)
||
"answer"
.
equals
(
cardContentType
))
{
"tractate"
.
equals
(
cardContentType
)
||
"answer"
.
equals
(
cardContentType
))
{
...
@@ -121,7 +121,7 @@ public class CtrEstimateTagOperator implements BaseOperator{
...
@@ -121,7 +121,7 @@ public class CtrEstimateTagOperator implements BaseOperator{
}
}
if
(
StringUtils
.
isNotBlank
(
clId
))
{
if
(
StringUtils
.
isNotBlank
(
clId
))
{
String
cardContentType
=
paramsObject
.
getString
(
"card_content_type"
);
String
cardContentType
=
paramsObject
.
getString
(
"card_content_type"
);
Long
cardId
=
paramsObject
.
getLo
ng
(
"card_id"
);
String
cardId
=
paramsObject
.
getStri
ng
(
"card_id"
);
ctrEstimateTagEtl
.
setDeviceId
(
deviceId
);
ctrEstimateTagEtl
.
setDeviceId
(
deviceId
);
if
(
null
!=
cardContentType
&&
null
!=
cardId
)
{
if
(
null
!=
cardContentType
&&
null
!=
cardId
)
{
ctrEstimateTagEtl
.
setCardId
(
cardId
);
ctrEstimateTagEtl
.
setCardId
(
cardId
);
...
...
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