title: Hadoop: maximum-am-resource-percent is insufficient to start a single application
body: <p>I'm new to Hadoop and Hive.</p>
  
  <p>I'm using Hadoop 2.6.4 (binary I got from internet) &amp; Hive 2.0.1 (binary I got from internet).
  I can create a database and table in hive.</p>
  
  <p>However when I try to insert a record into a previously created table I get:
  "org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue: maximum-am-resource-percent is insufficient to start a single application in queue"</p>
  
  <p>I'm using default so there is one queue "root" and it is running</p>
  
  <h1>yarn-site.xml</h1>
  
  <pre><code> &lt;property&gt;
        &lt;name&gt;yarn.resourcemanager.scheduler.class&lt;/name&gt;
        &lt;value&gt;org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler&lt;/value&gt;
  &lt;/property&gt;
  </code></pre>
  
  <h1>capacity-scheduler.xml</h1>
  
  <pre><code>&lt;property&gt;
      &lt;name&gt;yarn.scheduler.capacity.maximum-am-resource-percent&lt;/name&gt;
      &lt;value&gt;1.0&lt;/value&gt;
      &lt;description&gt;
        Maximum percent of resources in the cluster which can be used to run
        application masters i.e. controls number of concurrent running
        applications.
      &lt;/description&gt;
    &lt;/property&gt;
  </code></pre>
  
  <p>According to the documentation this means I have allocated 100% to my one and only default scheduler queue.
  [<a href="https://hadoop.apache.org/docs/r2.6.4/hadoop-yarn/hadoop-yarn-site/CapacityScheduler.html]" rel="noreferrer">https://hadoop.apache.org/docs/r2.6.4/hadoop-yarn/hadoop-yarn-site/CapacityScheduler.html]</a>
  "yarn.scheduler.capacity.maximum-am-resource-percent / yarn.scheduler.capacity..maximum-am-resource-percent
  Maximum percent of resources in the cluster which can be used to run application masters - controls number of concurrent active applications. 
  Limits on each queue are directly proportional to their queue capacities and user limits.
   Specified as a float - ie 0.5 = 50%. Default is 10%. This can be set for all queues with yarn.scheduler.capacity.maximum-am-resource-percent and can also be overridden on a per queue basis by setting
   yarn.scheduler.capacity..maximum-am-resource-percent"</p>
  
  <p>Can someone tell me how to fix this?</p>