Skip to content

Commit

Permalink
Set hostname for metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
tedyu committed Dec 20, 2015
1 parent c9ad494 commit 86dbca8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ class HeartbeatReceiverSuite
executorId: String,
executorShouldReregister: Boolean): Unit = {
val metrics = new TaskMetrics
metrics.setHostname("localhost")
val blockManagerId = BlockManagerId(executorId, "localhost", 12345)
val response = heartbeatReceiverRef.askWithRetry[HeartbeatResponse](
Heartbeat(executorId, Array(1L -> metrics), blockManagerId))
Expand Down

0 comments on commit 86dbca8

Please sign in to comment.