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
d9b73faa
Commit
d9b73faa
authored
Sep 09, 2021
by
WangJinfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix no file
parent
0808694a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
RTDmpMainPre.scala
...in/scala/mobvista/dmp/datasource/rtdmp/RTDmpMainPre.scala
+1
-1
No files found.
src/main/scala/mobvista/dmp/datasource/rtdmp/RTDmpMainPre.scala
View file @
d9b73faa
...
@@ -156,7 +156,7 @@ class RTDmpMainPre extends CommonSparkJob with Serializable {
...
@@ -156,7 +156,7 @@ class RTDmpMainPre extends CommonSparkJob with Serializable {
val
pathUri
=
new
URI
(
audData
.
get
(
0
).
_1
)
val
pathUri
=
new
URI
(
audData
.
get
(
0
).
_1
)
if
(
audData
.
nonEmpty
&&
FileSystem
.
get
(
new
URI
(
s
"${pathUri.getScheme}://${pathUri.getHost}"
),
sc
.
hadoopConfiguration
)
if
(
audData
.
nonEmpty
&&
FileSystem
.
get
(
new
URI
(
s
"${pathUri.getScheme}://${pathUri.getHost}"
),
sc
.
hadoopConfiguration
)
.
exists
(
new
Path
(
audData
.
get
(
0
).
_1
.
replace
(
"*"
,
""
))))
{
.
exists
(
new
Path
(
audData
.
get
(
0
).
_1
.
replace
(
"*"
,
""
))))
{
val
rdd
=
sc
.
newAPIHadoopFile
(
audData
.
get
(
0
).
_1
,
fc
,
kc
,
vc
,
sc
.
hadoopConfiguration
)
val
rdd
=
sc
.
newAPIHadoopFile
(
audData
.
get
(
0
).
_1
.
replace
(
"*"
,
""
)
,
fc
,
kc
,
vc
,
sc
.
hadoopConfiguration
)
val
linesWithFileNames
=
rdd
.
asInstanceOf
[
NewHadoopRDD
[
LongWritable
,
Text
]]
val
linesWithFileNames
=
rdd
.
asInstanceOf
[
NewHadoopRDD
[
LongWritable
,
Text
]]
.
mapPartitionsWithInputSplit
((
inputSplit
,
iterator
)
=>
{
.
mapPartitionsWithInputSplit
((
inputSplit
,
iterator
)
=>
{
val
file
=
inputSplit
.
asInstanceOf
[
FileSplit
]
val
file
=
inputSplit
.
asInstanceOf
[
FileSplit
]
...
...
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