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
69359cfa
Commit
69359cfa
authored
Dec 21, 2021
by
WangJinfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init id_mapping
parent
408f3263
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
IDMappingGraphx.scala
.../mobvista/dmp/datasource/id_mapping/IDMappingGraphx.scala
+3
-2
No files found.
src/main/scala/mobvista/dmp/datasource/id_mapping/IDMappingGraphx.scala
View file @
69359cfa
...
...
@@ -169,8 +169,6 @@ class IDMappingGraphx extends CommonSparkJob with Serializable {
.
option
(
"orc.compress"
,
"zlib"
)
.
orc
(
outPutPath
)
FileSystem
.
get
(
new
URI
(
s
"s3://mob-emr-test"
),
spark
.
sparkContext
.
hadoopConfiguration
).
delete
(
new
Path
(
resultOutPutPath
),
true
)
val
resultOneID
=
midMergeOneIDRDD
.
mapPartitions
(
rs
=>
{
rs
.
map
(
r
=>
{
val
device_id
=
r
.
device_id
...
...
@@ -198,6 +196,9 @@ class IDMappingGraphx extends CommonSparkJob with Serializable {
Result
(
device_id
=
device_id
,
device_type
=
device_type
,
one_id
=
json
.
toJSONString
)
})
})
FileSystem
.
get
(
new
URI
(
s
"s3://mob-emr-test"
),
spark
.
sparkContext
.
hadoopConfiguration
).
delete
(
new
Path
(
resultOutPutPath
),
true
)
resultOneID
.
toDF
.
repartition
(
coalesce
)
...
...
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