chucheng92 commented on code in PR #22207:
URL: https://github.com/apache/flink/pull/22207#discussion_r1141590982


##########
flink-yarn/src/main/java/org/apache/flink/yarn/YarnClusterDescriptor.java:
##########
@@ -670,22 +670,22 @@ private ClusterSpecification validateClusterResources(
 
         final String note =
                 "Please check the 'yarn.scheduler.maximum-allocation-mb' and 
the 'yarn.nodemanager.resource.memory-mb' configuration values\n";
-        if (jobManagerMemoryMb > maximumResourceCapability.getMemory()) {
+        if (jobManagerMemoryMb > maximumResourceCapability.getMemorySize()) {

Review Comment:
   hi, i think here memory unit is MB. so we can use int, why must long ?



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to