[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (FLINK-9777) YARN: JM and TM Memory must be specified with Units

Gary Yao created FLINK-9777:

             Summary: YARN: JM and TM Memory must be specified with Units 
                 Key: FLINK-9777
             Project: Flink
          Issue Type: Bug
          Components: Documentation, YARN
    Affects Versions: 1.6.0
            Reporter: Gary Yao
             Fix For: 1.6.0

With FLINK-6469, the JobManager and TaskManager memory must be specified with units (otherwise bytes are assumed). The command to start a YARN session as documented ([ |] would not work because 1024 bytes and 4096 bytes are not enough for the heap size. The command finishes with the following exception: 

	at org.apache.flink.yarn.cli.FlinkYarnSessionCli.main(
Caused by: org.apache.flink.client.deployment.ClusterDeploymentException: Couldn't deploy Yarn session cluster
	at org.apache.flink.yarn.AbstractYarnClusterDescriptor.deploySessionCluster(
	at org.apache.flink.yarn.cli.FlinkYarnSessionCli.lambda$main$2(
	at Method)
	... 2 more
Caused by: org.apache.flink.util.FlinkException: Cannot fulfill the minimum memory requirements with the provided cluster specification. Please increase the memory of the cluster.
	at org.apache.flink.yarn.AbstractYarnClusterDescriptor.validateClusterSpecification(
	at org.apache.flink.yarn.AbstractYarnClusterDescriptor.deployInternal(
	at org.apache.flink.yarn.AbstractYarnClusterDescriptor.deploySessionCluster(
	... 7 more
Caused by: java.lang.IllegalArgumentException
	at org.apache.flink.util.Preconditions.checkArgument(
	at org.apache.flink.runtime.clusterframework.ContaineredTaskManagerParameters.calculateCutoffMB(
	at org.apache.flink.yarn.AbstractYarnClusterDescriptor.validateClusterSpecification(
	... 9 more


This message was sent by Atlassian JIRA