public final class YarnClientYarnClusterInformationRetriever extends Object implements YarnClusterInformationRetriever
YarnClusterInformationRetriever
implementation which queries the Yarn cluster using a
YarnClient
instance.Modifier and Type | Method and Description |
---|---|
static YarnClientYarnClusterInformationRetriever |
create(org.apache.hadoop.yarn.client.api.YarnClient yarnClient) |
int |
getMaxVcores()
Get the maximum number of vcores supported by the Yarn cluster.
|
public int getMaxVcores() throws FlinkException
YarnClusterInformationRetriever
getMaxVcores
in interface YarnClusterInformationRetriever
FlinkException
public static YarnClientYarnClusterInformationRetriever create(org.apache.hadoop.yarn.client.api.YarnClient yarnClient)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.