diff --git a/core/src/main/scala/org/apache/spark/status/LiveEntity.scala b/core/src/main/scala/org/apache/spark/status/LiveEntity.scala index fc5fc32d64..b3dc3673b2 100644 --- a/core/src/main/scala/org/apache/spark/status/LiveEntity.scala +++ b/core/src/main/scala/org/apache/spark/status/LiveEntity.scala @@ -553,7 +553,7 @@ private class LiveRDDDistribution(exec: LiveExecutor) { def toApi(): v1.RDDDataDistribution = { if (lastUpdate == null) { lastUpdate = new v1.RDDDataDistribution( - weakIntern(exec.hostPort), + weakIntern(if (exec.hostPort != null) exec.hostPort else exec.host), memoryUsed, exec.maxMemory - exec.memoryUsed, diskUsed,