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
5f24407c
Commit
5f24407c
authored
Jan 06, 2022
by
WangJinfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix adn_device_ids_daily.sh
parent
7b9e3e1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
adn_device_ids_daily.sh
azkaban/adn/adn_device_ids_daily.sh
+6
-5
AdnDeviceIdsMR.java
...mobvista/dmp/datasource/adn/mapreduce/AdnDeviceIdsMR.java
+5
-4
No files found.
azkaban/adn/adn_device_ids_daily.sh
View file @
5f24407c
...
...
@@ -28,11 +28,12 @@ hadoop fs -rm -r ${OUTPUT_PATH}/*
export
HADOOP_CLIENT_OPTS
=
"-Xmx2096m
$HADOOP_CLIENT_OPTS
"
hadoop jar ../
${
JAR
}
mobvista.dmp.datasource.adn.mapreduce.AdnDeviceIdsMR
\
-Dmapreduce
.job.reduces
=
200
\
-Dmapreduce
.map.memory.mb
=
4096
\
-Dmapreduce
.map.java.opts
=
-Xmx2458m
\
-Dmapreduce
.reduce.memory.mb
=
4096
\
-Dmapreduce
.reduce.java.opts
=
-Xmx2458m
\
-Dmapreduce
.job.reduces
=
1000
\
-Dmapred
.child.java.opts
=
-Xmx4096m
\
-Dmapreduce
.map.memory.mb
=
8192
\
-Dmapreduce
.map.java.opts
=
-Xmx4096m
\
-Dmapreduce
.reduce.memory.mb
=
8192
\
-Dmapreduce
.reduce.java.opts
=
-Xmx4096m
\
-Dtask
.date
=
"
$year
-
$month
-
$day
"
\
-Dmapreduce
.fileoutputcommitter.algorithm.version
=
2
\
"
$INPUT_ADN_DSP_PATH
"
"
$OUTPUT_PATH
"
||
exit
1
...
...
src/main/java/mobvista/dmp/datasource/adn/mapreduce/AdnDeviceIdsMR.java
View file @
5f24407c
...
...
@@ -126,12 +126,13 @@ public class AdnDeviceIdsMR extends Configured implements Tool {
Configuration
conf
=
getConf
();
conf
.
set
(
"mapreduce.map.speculative"
,
"true"
);
conf
.
set
(
"mapreduce.reduce.speculative"
,
"true"
);
conf
.
set
(
"mapreduce.task.io.sort.mb"
,
"
500
"
);
conf
.
set
(
"mapreduce.reduce.java.opts"
,
"-Xmx
153
6m"
);
conf
.
set
(
"mapreduce.reduce.memory.mb"
,
"
2048
"
);
conf
.
set
(
"mapreduce.reduce.shuffle.parallelcopies"
,
"
5
0"
);
conf
.
set
(
"mapreduce.task.io.sort.mb"
,
"
1024
"
);
conf
.
set
(
"mapreduce.reduce.java.opts"
,
"-Xmx
409
6m"
);
conf
.
set
(
"mapreduce.reduce.memory.mb"
,
"
8192
"
);
conf
.
set
(
"mapreduce.reduce.shuffle.parallelcopies"
,
"
20
0"
);
Job
job
=
Job
.
getInstance
(
conf
,
"adn device ids job"
);
job
.
setJarByClass
(
AdnDeviceIdsMR
.
class
);
job
.
setNumReduceTasks
(
2000
);
FileInputFormat
.
addInputPath
(
job
,
new
Path
(
args
[
0
]));
//FileInputFormat.addInputPath(job, new Path(args[1]));
...
...
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