jiangxb1987 commented on a change in pull request #24374: [SPARK-27366][CORE]
Support GPU Resources in Spark job scheduling
URL: https://github.com/apache/spark/pull/24374#discussion_r289186279
##########
File path: core/src/main/scala/org/apache/spark/scheduler/TaskDescription.scala
##########
@@ -68,6 +71,21 @@ private[spark] object TaskDescription {
}
}
+ private def serializeResources(map: immutable.Map[String,
ResourceInformation],
+ dataOut: DataOutputStream): Unit = {
+ dataOut.writeInt(map.size)
Review comment:
I checked the commit history and seems we intend to hand write the SerDe
code for TaskDescription class, and in this way we only able to serialize
simple data types(IntăUTF etc.) but not able to serialize an object directly.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]