Hive query failed with error: Killing the Job. mapResourceReqt: 1638 maxContainerCapability:1200

When running a Hive query, get the following error in the jobhistory: MAP capability required is more than the supported max container capability in the cluster. Killing the Job. mapResourceRequest: <memory:1638, vCores:1> maxContainerCapability:<memory:1200, vCores:2> This is caused by the following settings in YARN: mapreduce.map.memory.mb => 1638 yarn.scheduler.maximum-allocation-mb => 1200 yarn.nodemanager.resource.memory-mb …