Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
28f1108e
Commit
28f1108e
authored
7 years ago
by
Skeirik
Browse files
Options
Downloads
Patches
Plain Diff
added more logging to getOrCompute in RDD.scala
parent
82d4d569
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/scala/org/apache/spark/rdd/RDD.scala
+7
-5
7 additions, 5 deletions
core/src/main/scala/org/apache/spark/rdd/RDD.scala
with
7 additions
and
5 deletions
core/src/main/scala/org/apache/spark/rdd/RDD.scala
+
7
−
5
View file @
28f1108e
...
@@ -369,17 +369,20 @@ abstract class RDD[T: ClassTag](
...
@@ -369,17 +369,20 @@ abstract class RDD[T: ClassTag](
blockExInfos
.
put
(
key
,
new
BlockExInfo
(
key
))
blockExInfos
.
put
(
key
,
new
BlockExInfo
(
key
))
}
}
logInfo
(
"Phoenix: about to check parents of node in current stage"
)
blockManager
.
stageExInfos
.
get
(
blockManager
.
currentStage
)
match
{
blockManager
.
stageExInfos
.
get
(
blockManager
.
currentStage
)
match
{
case
Some
(
curStageExInfo
)
=>
case
Some
(
curStageExInfo
)
=>
var
parExist
=
true
var
parExist
=
true
// get parents of current node
for
(
par
<-
curStageExInfo
.
depMap
(
id
))
{
for
(
par
<-
curStageExInfo
.
depMap
(
id
))
{
val
parBlockId
=
new
RDDBlockId
(
par
,
partition
.
index
)
val
parBlockId
=
new
RDDBlockId
(
par
,
partition
.
index
)
if
(
blockExInfos
.
containsKey
(
parBlockId
)
&&
if
(
blockExInfos
.
containsKey
(
parBlockId
)
&&
blockExInfos
.
get
(
parBlockId
).
isExist
==
1
)
{
blockExInfos
.
get
(
parBlockId
).
isExist
==
1
)
{
// par is exist
// par is exist
logInfo
(
"Phoenix: A parent for this node exists"
)
}
else
{
}
else
{
// par not exist now, add this key to it's par's watching set
// par not exist now, add this key to it's par's watching set
logInfo
(
"Phoenix: A parent for this node was not found"
)
parExist
=
false
parExist
=
false
if
(!
blockExInfos
.
containsKey
(
parBlockId
))
{
if
(!
blockExInfos
.
containsKey
(
parBlockId
))
{
blockExInfos
.
put
(
parBlockId
,
new
BlockExInfo
(
parBlockId
))
blockExInfos
.
put
(
parBlockId
,
new
BlockExInfo
(
parBlockId
))
...
@@ -389,12 +392,11 @@ abstract class RDD[T: ClassTag](
...
@@ -389,12 +392,11 @@ abstract class RDD[T: ClassTag](
}
}
if
(
parExist
)
{
if
(
parExist
)
{
// par are all exist so we update this rdd's start time
// par are all exist so we update this rdd's start time
// logEarne("par all exist, store start time of " + key)
logInfo
(
"Phoenix: Nodes parents all exist, store start time of "
+
key
)
blockExInfos
.
get
(
key
).
creatStartTime
=
blockExInfos
.
get
(
key
).
creatStartTime
=
System
.
currentTimeMillis
()
System
.
currentTimeMillis
()
}
}
case
None
=>
case
None
=>
logInfo
(
"
An Error With CS525 Project
"
)
logInfo
(
"
Phoenix: stage info not found
"
)
}
}
// SS }
// SS }
// This method is called on executors, so we need call SparkEnv.get instead of sc.env.
// This method is called on executors, so we need call SparkEnv.get instead of sc.env.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment