You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ey...@apache.org on 2019/03/20 23:14:16 UTC
[hadoop] branch trunk updated: YARN-9370. Added logging for
recovering assigned GPU devices. Contributed by Yesha Vora
This is an automated email from the ASF dual-hosted git repository.
eyang pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 506502b YARN-9370. Added logging for recovering assigned GPU devices. Contributed by Yesha Vora
506502b is described below
commit 506502bb8301f3b4a68e5f692a2af0624980468e
Author: Eric Yang <ey...@apache.org>
AuthorDate: Wed Mar 20 19:12:19 2019 -0400
YARN-9370. Added logging for recovering assigned GPU devices.
Contributed by Yesha Vora
---
.../containermanager/linux/resources/gpu/GpuResourceAllocator.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/resources/gpu/GpuResourceAllocator.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/resources/gpu/GpuResourceAllocator.java
index 67936ba..0b95ca7 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/resources/gpu/GpuResourceAllocator.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/resources/gpu/GpuResourceAllocator.java
@@ -119,6 +119,7 @@ public class GpuResourceAllocator {
+ containerId);
}
+ LOG.info("Starting recovery of GpuDevice for {}.", containerId);
for (Serializable gpuDeviceSerializable : c.getResourceMappings()
.getAssignedResources(GPU_URI)) {
if (!(gpuDeviceSerializable instanceof GpuDevice)) {
@@ -146,7 +147,10 @@ public class GpuResourceAllocator {
}
usedDevices.put(gpuDevice, containerId);
+ LOG.info("ContainerId {} is assigned to GpuDevice {} on recovery.",
+ containerId, gpuDevice);
}
+ LOG.info("Finished recovery of GpuDevice for {}.", containerId);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org