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
408f3263
Commit
408f3263
authored
Dec 21, 2021
by
WangJinfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init id_mapping
parent
dfe66020
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
id_mapping.sh
azkaban/id_mapping/id_mapping.sh
+4
-2
IDMappingGraphx.scala
.../mobvista/dmp/datasource/id_mapping/IDMappingGraphx.scala
+1
-0
No files found.
azkaban/id_mapping/id_mapping.sh
View file @
408f3263
...
...
@@ -14,7 +14,9 @@ check_await "${ADN_REQUEST_INPUT_PATH}/_SUCCESS"
check_await
"
${
DSP_INPUT_PATH
}
/_SUCCESS"
OUTPUT_PATH
=
${
ADS_DEVICE_ID_MAPPING
}
/
${
date_path
}
OUTPUT_PATH
=
${
ADS_DEVICE_MID_ID_MAPPING
}
/
${
date_path
}
RESULT_OUTPUT_PATH
=
${
ADS_DEVICE_ID_MAPPING
}
/
${
date_path
}
country
=
"US"
...
...
@@ -28,7 +30,7 @@ spark-submit --class mobvista.dmp.datasource.id_mapping.IDMappingGraphx \
--conf
spark.default.parallelism
=
10000
\
--conf
spark.executor.extraJavaOptions
=
"-XX:+UseG1GC"
\
--master
yarn
--deploy-mode
cluster
--executor-memory
12g
--driver-memory
8g
--executor-cores
5
--num-executors
100
\
../
${
JAR
}
-date
${
LOG_TIME
}
-country
${
country
}
-platform
${
platform
}
-output
${
OUTPUT_PATH
}
-coalesce
500
../
${
JAR
}
-date
${
LOG_TIME
}
-country
${
country
}
-platform
${
platform
}
-output
${
OUTPUT_PATH
}
-
result_output
${
RESULT_OUTPUT_PATH
}
-
coalesce
500
if
[
$?
-ne
0
]
;
then
exit
255
...
...
src/main/scala/mobvista/dmp/datasource/id_mapping/IDMappingGraphx.scala
View file @
408f3263
...
...
@@ -31,6 +31,7 @@ class IDMappingGraphx extends CommonSparkJob with Serializable {
options
.
addOption
(
"date"
,
true
,
"date"
)
options
.
addOption
(
"output"
,
true
,
"output"
)
options
.
addOption
(
"coalesce"
,
true
,
"coalesce"
)
options
.
addOption
(
"result_output"
,
true
,
"result_output"
)
options
}
...
...
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