Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.0-beta1
-
None
-
Reviewed
Description
org.apache.hadoop.yarn.service.api.records.Resource has a new method introduced in YARN-6903 for casting memory from string to long value. However, the method name getMemoryMB introduces new output in json that looks like this:
"resource" : { "uri" : null, "profile" : null, "cpus" : 1, "memory" : "2048", "memory_mb" : 2048 },
This prevents the file to be resubmitted to services api because memory_mb property is unknown to the REST API. It may be better to rename getMemoryMB method to calcMemoryMB to avoid the method to be serialized unintentionally.