Fixing the YARN Invalid resource request, requested memory < 0, or requested memory > max configured

10 March 2015 in Browsing - 1 minute read

Are you seeing this error when submitting a job to YARN? Are you launching an Oozie workflow with a Spark action? You might be hitting this issue!

Error starting action [spark-e27e]. ErrorType [TRANSIENT], ErrorCode [JA009], Message [JA009: org.apache.hadoop.yarn.exceptions.InvalidResourceRequestException: Invalid resource request, requested memory < 0, or requested memory > max configured, requestedMemory=1536, maxMemory=1024

at org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerUtils.validateResourceRequest(

at org.apache.hadoop.yarn.server.resourcemanager.RMAppManager.validateAndCreateResourceRequest(

at org.apache.hadoop.yarn.server.resourcemanager.RMAppManager.createAndPopulateNewRMApp(

at org.apache.hadoop.yarn.server.resourcemanager.RMAppManager.submitApplication(

at org.apache.hadoop.yarn.server.resourcemanager.ClientRMService.submitApplication(

at org.apache.hadoop.yarn.api.impl.pb.service.ApplicationClientProtocolPBServiceImpl.submitApplication(

at org.apache.hadoop.yarn.proto.ApplicationClientProtocol$ApplicationClientProtocolService$2.callBlockingMethod(

at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$

at org.apache.hadoop.ipc.RPC$

at org.apache.hadoop.ipc.Server$Handler$

at org.apache.hadoop.ipc.Server$Handler$

at Method)



at org.apache.hadoop.ipc.Server$




Your job is asking for more memory than what YARN is authorizing him to do. One way to fix it is to up these parameters to more like 2000:


Have any questions? Feel free to contact us on hue-user or @gethue!

comments powered by Disqus

More recent stories

13 November 2019
Visually surfacing SQL information like Primary Keys, Foreign Keys, Views and Complex Types
Read More
31 October 2019
Missing some color? How to improve or add your own SQL syntax Highlighter
Read More
24 October 2019
How to create a HBase table on Kerberized Hadoop clusters
Read More