pai icon indicating copy to clipboard operation
pai copied to clipboard

[ExitType]: NON_TRANSIENT. Invalid resource request, requested GPUs < 0, or requested GPUs > max configured, requestedGPUs=1, maxGPUs=0

Open hao1939 opened this issue 8 years ago • 2 comments

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

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"
    }
  ]
}

hao1939 avatar Jun 24 '18 08:06 hao1939

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.

qinchen123 avatar Jun 25 '18 07:06 qinchen123

this is due to gpu exporter has a different view than RM. https://github.com/Microsoft/pai/issues/713

fanyangCS avatar Jun 25 '18 07:06 fanyangCS