pai
pai copied to clipboard
[ExitType]: NON_TRANSIENT. Invalid resource request, requested GPUs < 0, or requested GPUs > max configured, requestedGPUs=1, maxGPUs=0
The capacity is 100, utilization is 0, and cpus/gpus are all zero! But submitted job failed for resource limit.
Here's log.
[ExitStatus]: AM_INTERNAL_NON_TRANSIENT_ERROR
[ExitCode]: 184
[ExitDiagnostics]:
AM internal non-transient error
[ExitType]: NON_TRANSIENT
________________________________________________________________________________________________________________________________________________________________________________________________________
[ExitCustomizedDiagnostics]:
onError called into AM from RM due to non-transient error, maybe application is non-compliant.
Exception:
org.apache.hadoop.yarn.exceptions.InvalidResourceRequestException: Invalid resource request, requested GPUs < 0, or requested GPUs > max configured, requestedGPUs=1, maxGPUs=0
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerUtils.validateResourceRequest(SchedulerUtils.java:290)
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerUtils.normalizeAndValidateRequest(SchedulerUtils.java:228)
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerUtils.normalizeAndvalidateRequest(SchedulerUtils.java:244)
at org.apache.hadoop.yarn.server.resourcemanager.RMServerUtils.normalizeAndValidateRequests(RMServerUtils.java:106)
at org.apache.hadoop.yarn.server.resourcemanager.ApplicationMasterService.allocate(ApplicationMasterService.java:505)
at org.apache.hadoop.yarn.api.impl.pb.service.ApplicationMasterProtocolPBServiceImpl.allocate(ApplicationMasterProtocolPBServiceImpl.java:60)
at org.apache.hadoop.yarn.proto.ApplicationMasterProtocol$ApplicationMasterProtocolService$2.callBlockingMethod(ApplicationMasterProtocol.java:99)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:616)
at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:969)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2049)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2045)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2045)
See the screenshot below.

Steps to reproduce: Fellow the single box boot-up and left the VC configuration as it (As default no VC is configured).
And my job config:
{
"jobName": "tensorflow-cifar10",
"image": "openpai/pai.example.tensorflow",
"authFile": "",
"dataDir": "/tmp/data",
"outputDir": "/tmp/output",
"codeDir": "",
"virtualCluster": "default",
"gpuType": "",
"killAllOnCompletedTaskNumber": 1,
"retryCount": 0,
"taskRoles": [
{
"name": "cifar_train",
"taskNumber": 1,
"cpuNumber": 1,
"memoryMB": 10900,
"gpuNumber": 1,
"command": "git clone https://github.com/tensorflow/models && cd models/research/slim && python download_and_convert_data.py --dataset_name=cifar10 --dataset_dir=$PAI_DATA_DIR && python train_image_classifier.py --batch_size=64 --model_name=inception_v3 --dataset_name=cifar10 --dataset_split_name=train --dataset_dir=$PAI_DATA_DIR --train_dir=$PAI_OUTPUT_DIR"
}
]
}
offline debug with yuan, This is an issue config, the only one GPU machine 10.0.1.5 was config as RM, and the other two non-GPU machines were config as worker, this caused there is no GPU machine in the cluster.
this is due to gpu exporter has a different view than RM. https://github.com/Microsoft/pai/issues/713