Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mobvista-dmp
Project
Overview
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
王金锋
mobvista-dmp
Commits
6452c795
Commit
6452c795
authored
Feb 14, 2022
by
WangJinfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update dmp
parent
450dd4c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dmp_env.sh
azkaban/dmp_env.sh
+1
-1
ComToponTopltv1015.scala
...scala/mobvista/dmp/datasource/dm/ComToponTopltv1015.scala
+2
-2
No files found.
azkaban/dmp_env.sh
View file @
6452c795
...
...
@@ -280,7 +280,7 @@ TMP_COM_YOUKU_PHONE_WAX_NOBID_PATH="s3://mob-emr-test/dataplatform/DataWareHouse
TMP_COM_BTOP_TIKTOKRV_PATH
=
"s3://mob-emr-test/dataplatform/DataWareHouse/data/dwh/tmp/com_btop_tiktokrv"
TMP_COM_BTOP_TIKTOKRV_GAID_PATH
=
"s3://mob-emr-test/dataplatform/DataWareHouse/data/dwh/tmp/com_btop_tiktokrv_gaid"
TMP_REYUN_LAHUO_LIST_PATH
=
"s3://mob-emr-test/dataplatform/DataWareHouse/data/dwh/tmp/reyun_lahuo_list"
TMP_COM_TOPON_TOPLTV_1015_PATH
=
"s3://mob-emr-test/dataplatform/DataWareHouse/data/dwh/tmp/com.topon_topltv_
1015
"
TMP_COM_TOPON_TOPLTV_1015_PATH
=
"s3://mob-emr-test/dataplatform/DataWareHouse/data/dwh/tmp/com.topon_topltv_
0207
"
TMP_COM_REYUN_PRACTICALTOOL_PATH
=
"s3://mob-emr-test/dataplatform/DataWareHouse/data/dwh/tmp/com.reyun_practicaltool"
TMP_COM_3APP_XIANJINDAI_PATH
=
"s3://mob-emr-test/dataplatform/DataWareHouse/data/dwh/tmp/com.3app.xianjindai"
TMP_COM_LAZADA_NOREGISTER_70P_30P_PATH
=
"s3://mob-emr-test/dataplatform/DataWareHouse/data/dwh/tmp/com_lazada_noregister_70p_30p"
...
...
src/main/scala/mobvista/dmp/datasource/dm/ComToponTopltv1015.scala
View file @
6452c795
...
...
@@ -150,11 +150,11 @@ class ComToponTopltv1015 extends CommonSparkJob with Serializable {
println
(
"oaid_sql=="
+
oaid_sql
)
val
imei_df
:
DataFrame
=
spark
.
sql
(
imei_sql
).
persist
(
StorageLevel
.
MEMORY_AND_DISK_SER
)
val
imei_df_with_package_name
=
imei_df
.
select
(
concat_ws
(
"\t"
,
imei_df
.
col
(
"device_id"
),
lit
(
"imei"
),
lit
(
"android"
),
lit
(
"[\"com.topon_topltv_
1015
\"]"
)))
val
imei_df_with_package_name
=
imei_df
.
select
(
concat_ws
(
"\t"
,
imei_df
.
col
(
"device_id"
),
lit
(
"imei"
),
lit
(
"android"
),
lit
(
"[\"com.topon_topltv_
0207
\"]"
)))
val
imei_df_with_country
=
imei_df
.
select
(
concat_ws
(
"\t"
,
imei_df
.
col
(
"device_id"
),
lit
(
"imei"
),
lit
(
"android"
),
lit
(
"CN"
)))
val
oaid_df
:
DataFrame
=
spark
.
sql
(
oaid_sql
).
persist
(
StorageLevel
.
MEMORY_AND_DISK_SER
)
val
oaid_df_with_package_name
=
oaid_df
.
select
(
concat_ws
(
"\t"
,
oaid_df
.
col
(
"device_id"
),
lit
(
"oaid"
),
lit
(
"android"
),
lit
(
"[\"com.topon_topltv_
1015
\"]"
)))
val
oaid_df_with_package_name
=
oaid_df
.
select
(
concat_ws
(
"\t"
,
oaid_df
.
col
(
"device_id"
),
lit
(
"oaid"
),
lit
(
"android"
),
lit
(
"[\"com.topon_topltv_
0207
\"]"
)))
val
oaid_df_with_country
=
oaid_df
.
select
(
concat_ws
(
"\t"
,
oaid_df
.
col
(
"device_id"
),
lit
(
"oaid"
),
lit
(
"android"
),
lit
(
"CN"
)))
imei_df_with_package_name
.
union
(
oaid_df_with_package_name
).
coalesce
(
coalesce
.
toInt
).
write
.
format
(
"text"
).
mode
(
"overwrite"
).
save
(
output01
)
...
...
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