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
9f0dc829
Commit
9f0dc829
authored
12 years ago
by
Matei Zaharia
Browse files
Options
Downloads
Patches
Plain Diff
Fix TaskMetrics not being serializable
parent
04fb81ff
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/scala/spark/executor/TaskMetrics.scala
+13
-6
13 additions, 6 deletions
core/src/main/scala/spark/executor/TaskMetrics.scala
with
13 additions
and
6 deletions
core/src/main/scala/spark/executor/TaskMetrics.scala
+
13
−
6
View file @
9f0dc829
package
spark.executor
class
TaskMetrics
{
class
TaskMetrics
extends
Serializable
{
/**
* Time taken on the executor to deserialize this task
*/
var
executorDeserializeTime
:
Int
=
_
/**
* Time the executor spends actually running the task (including fetching shuffle data)
*/
var
executorRunTime
:
Int
=
_
/**
* The number of bytes this task transmitted back to the driver as the TaskResult
*/
...
...
@@ -23,49 +25,54 @@ class TaskMetrics{
* If this task writes to shuffle output, metrics on the written shuffle data will be collected here
*/
var
shuffleWriteMetrics
:
Option
[
ShuffleWriteMetrics
]
=
None
}
object
TaskMetrics
{
private
[
spark
]
def
empty
()
:
TaskMetrics
=
new
TaskMetrics
private
[
spark
]
def
empty
()
:
TaskMetrics
=
new
TaskMetrics
}
class
ShuffleReadMetrics
{
class
ShuffleReadMetrics
extends
Serializable
{
/**
* Total number of blocks fetched in a shuffle (remote or local)
*/
var
totalBlocksFetched
:
Int
=
_
/**
* Number of remote blocks fetched in a shuffle
*/
var
remoteBlocksFetched
:
Int
=
_
/**
* Local blocks fetched in a shuffle
*/
var
localBlocksFetched
:
Int
=
_
/**
* Total time to read shuffle data
*/
var
shuffleReadMillis
:
Long
=
_
/**
* Total time that is spent blocked waiting for shuffle to fetch remote data
*/
var
remoteFetchWaitTime
:
Long
=
_
/**
* The total amount of time for all the shuffle fetches. This adds up time from overlapping
* shuffles, so can be longer than task time
*/
var
remoteFetchTime
:
Long
=
_
/**
* Total number of remote bytes read from a shuffle
*/
var
remoteBytesRead
:
Long
=
_
}
class
ShuffleWriteMetrics
{
class
ShuffleWriteMetrics
extends
Serializable
{
/**
* Number of bytes written for a shuffle
*/
var
shuffleBytesWritten
:
Long
=
_
}
\ No newline at end of file
}
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